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]

altivec PRE_GCC3_DWARF_FRAME_REGISTERS


hi david!

now that we know, it won't change abi-- thanks to rth's suggestions and
the previous patch including this new macro... a patch to allow for
altivec registers in the dwarf call frame.

bootstrapped on linux ppc.

ok?

-- 
Aldy Hernandez			E-mail: aldyh@redhat.com
Professional Gypsy
Red Hat, Inc.

2001-12-06  Aldy Hernandez  <aldyh@redhat.com>

	* rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.
	(DWARF_FRAME_REGISTERS): Adjust for altivec.

Index: config/rs6000/rs6000.h
===================================================================
RCS file: /cvs/uberbaum/gcc/config/rs6000/rs6000.h,v
retrieving revision 1.151
diff -c -p -r1.151 rs6000.h
*** rs6000.h	2001/12/03 19:13:35	1.151
--- rs6000.h	2001/12/06 18:34:30
*************** extern int rs6000_altivec_abi;
*** 700,710 ****
  
  #define FIRST_PSEUDO_REGISTER 110
  
! /* This must not decrease, for backwards compatibility.  If
!    FIRST_PSEUDO_REGISTER increases, this should as well.  */
! /* fixme: this needs to be defined to "TARGET_ALTIVEC_ABI ? 110 : 77"
!    and then fix usages of DWARF_FRAME_REGISTERS to work.  */
! #define DWARF_FRAME_REGISTERS 77
  
  /* 1 for registers that have pervasive standard uses
     and are not available for the register allocator.
--- 700,710 ----
  
  #define FIRST_PSEUDO_REGISTER 110
  
! /* This must be included for pre gcc 3.0 glibc compatability.  */
! #define PRE_GCC3_DWARF_FRAME_REGISTERS 77
! 
! /* If FIRST_PSEUDO_REGISTER increases, this should as well.  */
! #define DWARF_FRAME_REGISTERS 110
  
  /* 1 for registers that have pervasive standard uses
     and are not available for the register allocator.


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