SH: use register names instead of numbers

Richard Henderson rth@redhat.com
Tue Nov 21 19:34:00 GMT 2000


On Tue, Nov 21, 2000 at 10:28:40PM -0500, Richard Kenner wrote:
> Great example STACK_POINTER_REGNUM in fact conflicts with a
> tm.h macro of the same name!
> 
> I think you made my point for me.  ;-)

I think not.  Rather that we'd now define STACK_POINTER_REGNUM
in the md file and _not_ directly in tm.h.

Really, the biggest use of this feature is the definition of
register numbers so that we needn't use manifest constants
like (reg:SI 7).  Thus in order to avoid mismatches between
tm.h and the md file (which is the whole point of emitting 
the defines in the first place) the md file would _have_ to
be the master.

Are you suggesting that we force tm.h to do

  #define STACK_POINTER_REGNUM  MD_REG_SP

?



r~


More information about the Gcc-patches mailing list