With the attached testcase, we get a SIGSEGV compiling with -O2 -fno-inline, with -O1 -fno-inline it's fine.
-- Summary: [4.1 Regression] Miscompiles libgnomecanvas Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24899