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]

[patch] h8300.h: Mention the soft frame pointer in various macros.


Hi,

Attached is a patch to mention the soft frame pointer in various
register-related macros, which I forgot to do when I added the soft
frame pointer.

Tested on h8300-elf.  Committed.

Kazu Hirata

2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>

	* config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
	pointer.
	(CALL_USED_REGISTERS): Likewise.
	(REG_ALLOC_ORDER): Likewise.
	(REG_CLASS) <GENERAL_REGS>: Likewise.

Index: h8300.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.h,v
retrieving revision 1.171
diff -u -r1.171 h8300.h
*** h8300.h	7 Feb 2004 17:06:19 -0000	1.171
--- h8300.h	16 Feb 2004 04:15:53 -0000
***************
*** 288,295 ****
  /* 1 for registers that have pervasive standard uses
     and are not available for the register allocator.  */
  
! #define FIXED_REGISTERS \
!   { 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1}
  
  /* 1 for registers not available across function calls.
     These must include the FIXED_REGISTERS and also any
--- 288,296 ----
  /* 1 for registers that have pervasive standard uses
     and are not available for the register allocator.  */
  
! #define FIXED_REGISTERS				\
! /* r0 r1 r2 r3 r4 r5 r6 r7 mac ap rap fp */	\
!   { 0, 0, 0, 0, 0, 0, 0, 1,  0, 1,  1, 1 }
  
  /* 1 for registers not available across function calls.
     These must include the FIXED_REGISTERS and also any
***************
*** 301,311 ****
  
     H8 destroys r0,r1,r2,r3.  */
  
! #define CALL_USED_REGISTERS \
!   { 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1 }
! 
! #define REG_ALLOC_ORDER \
!   { 2, 3, 0, 1, 4, 5, 6, 8, 7, 9, 10}
  
  #define CONDITIONAL_REGISTER_USAGE			\
  {							\
--- 302,314 ----
  
     H8 destroys r0,r1,r2,r3.  */
  
! #define CALL_USED_REGISTERS			\
! /* r0 r1 r2 r3 r4 r5 r6 r7 mac ap rap fp */	\
!   { 1, 1, 1, 1, 0, 0, 0, 1,  1, 1,  1, 1 }
! 
! #define REG_ALLOC_ORDER				\
! /* r0 r1 r2 r3 r4 r5 r6 r7 mac ap rap  fp */	\
!   { 2, 3, 0, 1, 4, 5, 6, 8,  7, 9, 10, 11 }
  
  #define CONDITIONAL_REGISTER_USAGE			\
  {							\
***************
*** 429,437 ****
  
  #define REG_CLASS_CONTENTS			\
  {      {0},		/* No regs      */	\
!    {0x6ff},		/* GENERAL_REGS */	\
     {0x100},		/* MAC_REGS */	\
!    {0x7ff},		/* ALL_REGS	*/	\
  }
  
  /* The same information, inverted:
--- 432,440 ----
  
  #define REG_CLASS_CONTENTS			\
  {      {0},		/* No regs      */	\
!    {0xeff},		/* GENERAL_REGS */	\
     {0x100},		/* MAC_REGS */	\
!    {0xfff},		/* ALL_REGS	*/	\
  }
  
  /* The same information, inverted:


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