This is the mail archive of the gcc@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: mainline -mcpu=power4


On Wed, Jan 07, 2004 at 04:40:15PM -0800, Geoff Keating wrote:
> Alan Modra <amodra@bigpond.net.au> writes:
> > Hmm, -mcpu=power4 leaves MASK_POWERPC64 off in target_flags, so
> > UNITS_PER_WORD is 4 and HARD_REGNO_NREGS thinks we need two regs for
> > DI:lr
> > 
> > What's the right fix here?  Using TARGET_64BIT in the insn predicate
> > doesn't agree with using TARGET_POWERPC64 (indirectly) in
> > HARD_REGNO_NREGS.
> 
> Add TARGET_POWERPC64 to this line:
> 
>          {"power4", PROCESSOR_POWER4, POWERPC_BASE_MASK | MASK_PPC_GFXOPT},
> 
> I forgot that POWER4 was also a 64-bit processor.

Yes, that's the obvious fix to make -mcpu=power4 work.  I was really
asking about why we have TARGET_64BIT in the insn predicate.  It's a
rather more general problem than just fixing -mcpu=power4.  For
instance, -m64 -mcpu=601 gets the ICE too.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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