http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50490
Bug #: 50490 Summary: ICE when compiling libglib2.0 with LTO Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: m...@use.net Created attachment 25345 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25345 pre-processed source of the file that triggers the ICE with trunk revision 178863: " gcc -O2 -flto -c mem-overflow.i /home/matt/src/glib2.0-2.29.92/./glib/tests/mem-overflow.c:137:1: internal compiler error: tree code 'optimization_node' is not supported in LTO streams " changing the -O2 to -O1 eliminates the ICE. valgrind shows nothing out of the ordinary. pre-processed file mentioned in the commandline above is attached.