This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
dbxout.c: correct big endian param offset
- To: gcc-patches at gcc dot gnu dot org
- Subject: dbxout.c: correct big endian param offset
- From: Clinton Popetz <cpopetz at cygnus dot com>
- Date: Mon, 6 Mar 2000 11:17:33 -0600
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)));
}