aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorClinton Popetz <cpopetz@cygnus.com>2000-03-08 13:45:17 +0000
committerClinton Popetz <cpopetz@gcc.gnu.org>2000-03-08 08:45:17 -0500
commit917d7595c1de40514eb89f8fce27aa8a95dce7cf (patch)
treeaed187426ffa07f56b620eacffdb45080bc74dff /gcc/dbxout.c
parent98eddaf72b64cf32c7f0b71bcb22bd245aa55f83 (diff)
downloadgcc-917d7595c1de40514eb89f8fce27aa8a95dce7cf.zip
gcc-917d7595c1de40514eb89f8fce27aa8a95dce7cf.tar.gz
gcc-917d7595c1de40514eb89f8fce27aa8a95dce7cf.tar.bz2
dbxout.c (dbxout_parms): When correcting for promoted big-endian parameters...
* dbxout.c (dbxout_parms): When correcting for promoted big-endian parameters, use the mode of the DECL_RTL rather than UNITS_PER_WORD. From-SVN: r32420
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index ada8c76..b97be4d 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -2488,7 +2488,9 @@ dbxout_parms (parms)
&& TYPE_MODE (TREE_TYPE (parms)) != GET_MODE (DECL_RTL (parms))
&& 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)));
+ current_sym_value +=
+ GET_MODE_SIZE (GET_MODE (DECL_RTL (parms)))
+ - GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (parms)));
}
FORCE_TEXT;