This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RS6000] Fix -m32 -Os lossage
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Segher Boessenkool <segher at kernel dot crashing dot org>
- Date: Thu, 12 Feb 2015 10:04:45 -0500
- Subject: Re: [RS6000] Fix -m32 -Os lossage
- Authentication-results: sourceware.org; auth=none
- References: <20150212123357 dot GO4274 at bubble dot grove dot modra dot org>
On Thu, Feb 12, 2015 at 7:33 AM, Alan Modra <amodra@gmail.com> wrote:
> Fixes -Os breakage showing up as 3 testsuite fails like the following,
> caused by add<mode>3 losing r0 as a valid source reg.
>
> insn does not satisfy its constraints:
> (insn 98 97 99 2 (set (reg:SI 11 11)
> (plus:SI (reg:SI 0 0)
> (const_int 80 [0x50]))) /src/gcc-current/gcc/testsuite/gcc.target/powerpc/savres.c:112 80 {*addsi3}
> (expr_list:REG_DEAD (reg:SI 0 0)
> (nil)))
>
> Bootstrap and regression test in progress.
>
> * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
> or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
Okay.
Thanks for catching this.
- David