From 917d7595c1de40514eb89f8fce27aa8a95dce7cf Mon Sep 17 00:00:00 2001 From: Clinton Popetz Date: Wed, 8 Mar 2000 13:45:17 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/dbxout.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60c467d0f67..22798387002 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2000-03-08 Clinton Popetz + + * dbxout.c (dbxout_parms): When correcting for promoted + big-endian parameters, use the mode of the DECL_RTL rather + than UNITS_PER_WORD. + 2000-03-08 Nathan Sidwell * c-common.h (make_fname_decl): Declare. diff --git a/gcc/dbxout.c b/gcc/dbxout.c index ada8c76a5a8..b97be4d4410 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; -- 2.30.2