void abort (void); void __attribute__((regparm(1))) g (int *p) { if (*p != 1) abort (); }
int main () { int k; k = 1; asm volatile ("call g" :: "a" (&k)); return 0; } -- Summary: [4.0 Regression] DCE eliminating non-dead code Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P1 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: belyshev at depni dot sinp dot msu dot ru CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19341