Fix pr 41469

Richard Henderson rth@redhat.com
Fri Sep 25 20:57:00 GMT 2009


A case of -O0 not removing all the dead code, leaving a RESX around. 
The cleanup_eh pass proved that the region wasn't reachable, and deleted 
the landing pad, expecting dead code elimination to remove the RESX.

Solved by expanding unreachable RESX to __builtin_trap, and a big fat 
comment.

Tested on x86-64-linux.


r~
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: d-pr41469
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090925/7ce0c279/attachment.ksh>


More information about the Gcc-patches mailing list