This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, avr] Fix PR64331: insn output and insn length computation rely on REG_DEAD notes.
- From: Denis Chertykov <chertykov at gmail dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 23 Feb 2015 18:39:55 +0400
- Subject: Re: [patch, avr] Fix PR64331: insn output and insn length computation rely on REG_DEAD notes.
- Authentication-results: sourceware.org; auth=none
- References: <54EB06C0 dot 2080503 at gjlay dot de>
2015-02-23 13:53 GMT+03:00 Georg-Johann Lay <avr@gjlay.de>:
> 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.
>
Approved. Please apply.
Denis.