This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/50490] ICE when compiling libglib2.0 with LTO, tree code 'optimization_node' is not supported in LTO streams


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]