https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91337
--- Comment #2 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Sat, Aug 03, 2019 at 03:14:57PM +0000, kargl at gcc dot gnu.org wrote: > --- Comment #1 from kargl at gcc dot gnu.org --- > (In reply to Chinoune from comment #0) > > I have encountered some underflows/overflows in my code compiled with > > -Ofast, and after investigations it seems like the complex abs gives zero > > with small numbers. So I added a workaround. but it didn't work: > > > > (snip) > > > > > gfortran-9 -O1 -funsafe-math-optimizations -ffinite-math-only > > bug_skip_if.f90 -o test.x > > ./test.x > > (snip) > > > > > Q : Why does gfortran skip the if statement? > > What happens if you don't use options that allow > a compiler to violate the standard? > BTW, with the posted code, I cannot reproduce your results on either i586-*-freebsd or x86_64-*-freebsd.