This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RS6000] powerpc64le -ffixed-cr2 -ffixed-cr3 -ffixed-cr4 ICE
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: Alan Modra <amodra at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, David Edelsohn <dje dot gcc at gmail dot com>
- Date: Tue, 3 May 2016 10:22:02 -0500
- Subject: Re: [RS6000] powerpc64le -ffixed-cr2 -ffixed-cr3 -ffixed-cr4 ICE
- Authentication-results: sourceware.org; auth=none
- References: <20160503145224 dot GP18915 at bubble dot grove dot modra dot org>
On Wed, May 04, 2016 at 12:22:24AM +0930, Alan Modra wrote:
> Fixes an ICE found when using odd options. Bootstrapped and
> regression tested both powerpc64-linux and powerpc64le-linux. OK to
> apply?
>
> gcc/
> PR target/70866
> * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
> when cr2,3,4 are all fixed regs.
> gcc/testsuite/
> * gcc.target/powerpc/pr70866.c: New.
This one seems obvious enough (I'll have to think about your other patch).
Have you tested if save and restore are correct now? I.e. not touching
the fixed ones. In either case, this should improve things, please apply.
Segher