With -O1, the following testcase int foo (void) { return ({ unsigned int resultvar = ({ long int arg = (long int) 0; register long int reg asm ("eax") = arg; asm volatile ("nop" : "=a" (resultvar) : "0" (reg) :"memory"); (int) resultvar;}); (int) resultvar;}); }
fails with an ICE: foo.c: In function 'foo': foo.c:3: internal compiler error: tree check: expected ssa_name, have var_decl in create_outofssa_var_map, at tree-ssa-coalesce.c:1051 -- Summary: [4.3 Regression] ICE with tree check error: expected ssa_name, have var_decl in create_outofssa_var_map Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-checking Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31866