[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Register Allocation -fnew-ra
From: |
Eric Weddington |
Subject: |
RE: [avr-gcc-list] Register Allocation -fnew-ra |
Date: |
Tue, 22 Aug 2006 12:56:55 -0600 |
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Ram Kumar Rengaswamy
> Sent: Tuesday, August 22, 2006 12:16 PM
> To: address@hidden
> Subject: [avr-gcc-list] Register Allocation -fnew-ra
>
> Hi,
> I am using avr-gcc-3.4.3.
> I have been trying to build an application that reserves a pair of
> registers (R2 and R3).
> I used the option -ffixed-r2 and -ffixed-r3.
> I would always get an error message during the compilation of one of
> the C files as follows:
> error: can't find a register in class `BASE_POINTER_REGS' while
> reloading `asm'
>
> However, hunting around the web, I came across this new option -fnew-
> ra that uses a different register allocation algorithm.
> I am able to successfully build my application with this option.
> But it looks like this option is not supported in the newer versions
> of gcc.
> Is there any reason for removing -fnew-ra option or is avr-gcc 4.0
> using -fnew-ra as a default option now ?
Yes. -fnew-ra never worked properly in the first place and hence was removed
for good. Please do not use this option.
Eric Weddington