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