https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102908
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|go |tree-optimization Keywords| |wrong-code Assignee|ian at airs dot com |pinskia at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This might be a bug in simple_dce_from_worklist which does not check stmt_unremovable_because_of_non_call_eh_p . Let me check if that solves the issue.