[Bug c++/43247] Icorrect optimization while declaring array[1]

thiago at kde dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 3 14:44:00 GMT 2010



------- Comment #2 from thiago at kde dot org  2010-03-03 14:44 -------
Also:
-O1 -ftree-vrp -fno-cprop-registers -fno-defer-pop
-fno-guess-branch-probability -fno-if-conversion -fno-if-conversion2
-fno-ipa-pure-const -fno-ipa-reference -fno-merge-constants
-fno-omit-frame-pointer -fno-split-wide-types -fno-tree-ch -fno-tree-copy-prop
-fno-tree-copyrename -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse
-fno-tree-fre -fno-tree-sink -fno-tree-sra -fno-tree-ter

However, if I add -fno-tree-ccp, the program starts to work as expected again.


-- 


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



More information about the Gcc-bugs mailing list