Ask your compiler vendor for a -fallow-infinite-loops