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]

SH minor fixes


I'm checking in this, under the ``obviously correct'' rule, to fix a
thinko in the recently-introduced OUTPUT_ADDR_CONST_EXTRA a register
name I missed in the register-naming patch.

Index: gcc/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Use INTVAL instead of
	mis-used XINT.
	(ARG_POINTER_REGNUM): Set to AP_REG.

Index: gcc/config/sh/sh.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/sh/sh.h,v
retrieving revision 1.88
diff -u -p -r1.88 sh.h
--- gcc/config/sh/sh.h 2000/11/25 06:35:09 1.88
+++ gcc/config/sh/sh.h 2000/12/01 02:22:00
@@ -642,7 +642,7 @@ do {									\
   OFFSET = initial_elimination_offset ((FROM), (TO))
 
 /* Base register for access to arguments of the function.  */
-#define ARG_POINTER_REGNUM	16
+#define ARG_POINTER_REGNUM	AP_REG
 
 /* Register in which the static-chain is passed to a function.  */
 #define STATIC_CHAIN_REGNUM	13
@@ -2205,7 +2205,7 @@ do { char dstr[30];					\
 	      char name[32];						\
 	      /* LPCS stands for Label for PIC Call Site.  */		\
 	      ASM_GENERATE_INTERNAL_LABEL				\
-		(name, "LPCS", XINT (XVECEXP ((X), 0, 0), 0));		\
+		(name, "LPCS", INTVAL (XVECEXP ((X), 0, 0)));		\
 	      assemble_name ((STREAM), name);				\
 	    }								\
 	    break;							\

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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