http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59622
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 31539 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31539&action=edit gcc49-pr59622.patch Untested fix. I think just adding __builtin_unreachable () call before the call and not folding the call at all is best, no need to attempt to handle the lhs etc., DCE will do it's job later on.