[PATCH] Prevent frame-related insn from occurring in delay slots of insns that throw

Tom de Vries Tom_deVries@mentor.com
Sat Jan 28 20:58:00 GMT 2012


Richard,

[now cc-ing gcc-patches]

this patch fixes PR50283 in a target-independent way.

it asserts on frame-related insns in the delay slot of insns that can throw,
and prevents the assert by testing for the same condition in
eligible_for_{delay,annul_true,annul_false}.

build and reg-tested on mips64el.

I don't know of any tests currently failing on this, so I think it's not
appropriate for stage4. OK for stage1 ?

Thanks,
- Tom

2012-01-27  Andrew Pinski  <apinski@cavium.com>
	    Tom de Vries  <tom@codesourcery.com>

	* dwarf2cfi.c (scan_trace): Add assert that frame-related insns should
	not occur in delay-slots of insns that can throw.
	* genattrtab.c (write_eligible_delay): Prevent frame-related insns from
	occurring in delay-slots of insns that can throw.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr50283.2.patch
Type: text/x-patch
Size: 1112 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120128/8e3457e2/attachment.bin>


More information about the Gcc-patches mailing list