void foo (void) { unsigned int x = 0; void bar (void) { x = 254; }
bar (); asm volatile ("" :: "m" (x)); } ICEs in various places at -O and higher in both 4.1.1 and on the trunk. >From initial skim, it seems tree-nested.c ought to be more careful when changing asms. -- Summary: [4.1/4.2/4.3 Regression] ICE with nested fn accessed var in asm "m" constraint Product: gcc Version: 4.1.2 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jakub at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30262