g++.dg/lto/20081109_[01].C fails at -O0 -fwhopr -m32 because for the second unit with the foo() function no unwind information is generated. Passing an extra -fexceptions or -funwind-tables fixes the runtime error.
-- Summary: WPA doesn't generate unwind information where necessary Product: gcc Version: lto Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41092