This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]