[PATCH] prevents labels referenced in the exception table to be deleted

Christian BRUEL christian.bruel@st.com
Wed Feb 10 15:51:00 GMT 2010


Hello,

While running validations on the SH for PR target/42841, we found an 
issue with undefined labels, that happened to be landing pad entries 
deleted by reorg_redirect_jump.

The situation was that we had sh_reorg inserting a constant pool just
bellow a barrier, which happens to be before a landing pad (whose first
instruction was a jump), and creates a jump over the constant pool. Then 
reorg_redirect_jump (from dbr), deletes the label despite its reference 
in the exception table.

A label referenced in the exception table is not dead and should not be
deleted when jumps are merged, This patch just prevents this.

Regards

Christian




-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: landing_pad_cp.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100210/73511673/attachment.ksh>


More information about the Gcc-patches mailing list