[Bug fortran/51267] loop optimization error using LOC function

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Tue Nov 22 21:09:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51267

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-11-22 20:56:43 UTC ---
According my archived builds
r165415 (20101013) gives the result you expect
r165758 (20101021) does not.

> Any option to tune the behavior ?

-fno-tree-ds seems to do the trick: from the C manual

http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options

> -ftree-dce
> Perform dead code elimination (DCE) on trees. This flag is enabled by default at -O and higher.



More information about the Gcc-bugs mailing list