This is the mail archive of the gcc-patches@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: [PATCH] m68k: update various structures for arg pointer


Hi,

On Wed, 10 Mar 2004, Gunther Nikl wrote:

> > +enum reg_class regno_reg_class[] =
>
>   Is there a reason that this has no const?

No, it's actually constant.

> > +#define REG_ALLOC_ORDER		\
> > +{ /* d0/d1/a0/a1 */		\
> > +  0, 1, 8, 9,			\
> > +  /* d2-d7 */			\
> > +  2, 3, 4, 5, 6, 7,		\
> > +  /* a2-a7/arg */		\
> > +  10, 11, 12, 13, 14, 15, 24,	\
> > +  /* fp0-fp7 */			\
> > +  16, 17, 18, 19, 20, 21, 22, 23\
> > +}
>
>   Could you please explain why REG_ALLOC_ORDER is needed now? The
>   documenation didn't help me understanding its need here.

It was suggested by Richard. It's not strictly needed, but it gives the
call used registers a0/a1 a higher priority.

bye, Roman


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