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

priv123 at hotmail dot fr gcc-bugzilla@gcc.gnu.org
Wed Nov 23 10:46:00 GMT 2011


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

--- Comment #5 from Mathieu <priv123 at hotmail dot fr> 2011-11-23 09:33:37 UTC ---
> -fno-tree-ds seems to do the trick: from the C manual

with -fno-tree-dse it works as I expect. Thanks.


Because reading the manual I didn't see this option (or more exactly I didn't
understand it should do the job), I tried to disable an option one by one.

So I get the enabled options enabled between -O0 and -O1 using : gfortran -Q
-O1 --help=optimizers
But using this command line :

gfortran -O0 -fcombine-stack-adjustments -fcompare-elim -fcprop-registers
-fdefer-pop -fforward-propagate -fguess-branch-probability -fif-conversion
-fif-conversion2 -fipa-profile -fipa-pure-const -fipa-reference
-fmerge-constants -fsplit-wide-types -ftree-bit-ccp -ftree-ccp -ftree-ch
-ftree-copy-prop -ftree-copyrename -ftree-dce -ftree-dominator-opts -ftree-dse
-ftree-fre -ftree-sink -ftree-sra -ftree-ter -Wall -Wextra xxxxx.F

it worked :-(
Does anybody know why ?




PS : I can mark this issue as RESOLVED and open a new one if you mean my
question is out-of-scope.



More information about the Gcc-bugs mailing list