dbxout.c (dbxout_parms): When correcting for promoted big-endian parameters...
authorClinton Popetz <cpopetz@cygnus.com>
Wed, 8 Mar 2000 13:45:17 +0000 (13:45 +0000)
committerClinton Popetz <cpopetz@gcc.gnu.org>
Wed, 8 Mar 2000 13:45:17 +0000 (08:45 -0500)
* 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
gcc/dbxout.c

index 60c467d0f679926d12b05df180568c689884dea1..227983870022381ce8cc6d90eb71fcd221f9ea79 100644 (file)
@@ -1,3 +1,9 @@
+2000-03-08  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.
+
 2000-03-08  Nathan Sidwell  <nathan@codesourcery.com>
 
        * c-common.h (make_fname_decl): Declare.
index ada8c76a5a8796bc928c7cf6d2fb95068dfead97..b97be4d4410c2ddf4dbdc38af011b746d5058978 100644 (file)
@@ -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;