[Bug lto/50430] Constructors of static external vars are throwed away leading to missed optimizations (and ipa-cp ICE).

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 16 15:42:00 GMT 2011


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

--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-09-16 15:02:42 UTC ---
Created attachment 25306
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25306
testcase

One will need to revert the gimple-fold.c patch mentioned above to get an
error. Otherwise it is just missed optimization.

/abuild/jh/trunk-install/bin/g++ -O2 -flto -fuse-linker-plugin -Ur -nostdlib
*.ii -fpermissive -std=c++0x
lto1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /abuild/jh/trunk-install/bin/g++ returned 1 exit status



More information about the Gcc-bugs mailing list