This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/50490] ICE when compiling libglib2.0 with LTO, tree code 'optimization_node' is not supported in LTO streams
- From: "reichelt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 19 Nov 2011 14:37:32 +0000
- Subject: [Bug lto/50490] ICE when compiling libglib2.0 with LTO, tree code 'optimization_node' is not supported in LTO streams
- Auto-submitted: auto-generated
- References: <bug-50490-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50490
Volker Reichelt <reichelt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-11-19
CC| |reichelt at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Volker Reichelt <reichelt at gcc dot gnu.org> 2011-11-19 14:37:32 UTC ---
I ran into the same issue.
Here's a reduced testcase that triggers the ICE when compiled with "-flto":
=============================================
__attribute__((optimize(1))) void foo() {}
=============================================
bug.c:1:1: internal compiler error: tree code 'optimization_node' is not
supported in LTO streams
Please submit a full bug report, [etc.]
This only happens on trunk, before I get:
bug.c:1:1: sorry, unimplemented: gimple bytecode streams do not support the
optimization attribute