[patch, avr] Fix PR64331: insn output and insn length computation rely on REG_DEAD notes.

Georg-Johann Lay avr@gjlay.de
Mon Feb 23 13:56:00 GMT 2015


This patch fixes PR64331 which produced wrong code because of outdated (too 
many) REG_DEAD notes.  These notes are not (re)computed per default, hence do 
the computation by hand each time avr.c:reg_unused_after is called in a 
different pass.

Ok to apply?

Johann


gcc/
	PR target/64331
	* config/avr/avr.c (reg_unused_after): Recompute insn notes if the
	pass changed since the last (re)computation.
	* config/avr/avr.h (machine_function.dead_notes_pass_number): New
	component.

gcc/testsuite/
	PR target/64331
	* gcc.target/avr/torture/pr64331.c: New run test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr64331.diff
Type: text/x-patch
Size: 2533 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150223/f2a9afc7/attachment.bin>


More information about the Gcc-patches mailing list