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: more m68k breakage on m68k-linux


Richard Zidlicky wrote:
Hi,

Appears we have an off by 1 error in m68k.h. Any idea how the old
m68k CPU magically gained another hard register?

gcc-3.2: #define FIRST_PSEUDO_REGISTER 24
gcc-3.4: #define FIRST_PSEUDO_REGISTER 25


Yeah: register 25 is a pseudo register that is only being used in RTL. It stands for the "argument pointer" register, pointing to a location on the stack from which arguments can be retrieved using a constant offset.

Some CPUs really have such a register.  On the m68k, it
is of course always eliminated by replacing it with the
frame pointer or the stack pointer.

Previously, the argptr was defined to be the same number
of FP, but this made it impossible to do the right thing
in register elimination for the ColdFire.

--
 // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/



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