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]

dbxout.c: correct big endian param offset


The appended patch corrects stabs output for promoted parameters on 64 bit
systems with 32 bit longs.

Ok? 
				-Clint

2000-03-06  Clinton Popetz  <cpopetz@cygnus.com>
	
	* dbxout.c (dbxout_parms): When correcting for promoted 
	big-endian parameters, use the mode of the DECL_RTL rather 
	than UNITS_PER_WORD.


Index: dbxout.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/dbxout.c,v
retrieving revision 1.177
diff -c -2 -p -r1.177 dbxout.c
*** dbxout.c	2000/01/11 14:58:58	1.177
--- dbxout.c	2000/03/06 16:49:23
*************** dbxout_parms (parms)
*** 2559,2563 ****
  		&& GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (parms))) < UNITS_PER_WORD)
  	      {
! 		current_sym_value += UNITS_PER_WORD - GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (parms)));
  	      }
  
--- 2559,2565 ----
  		&& GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (parms))) < UNITS_PER_WORD)
  	      {
! 		current_sym_value += 
! 		    GET_MODE_SIZE (GET_MODE (DECL_RTL (parms)))
! 		    - GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (parms)));
  	      }
  

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