]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dwarf2out.c (add_location_or_const_value_attribute): Correct test for sizes of passed...
authorHans-Peter Nilsson <hp@bitrange.com>
Tue, 3 Aug 1999 07:04:37 +0000 (07:04 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 3 Aug 1999 07:04:37 +0000 (03:04 -0400)
* dwarf2out.c (add_location_or_const_value_attribute): Correct
test for sizes of passed and declared parameter types.

From-SVN: r28444

gcc/ChangeLog
gcc/dwarf2out.c

index ef9f5ba6b58460cfcdc8b25855637298b25d421f..8e38116016ce75c10f568edb94cd8247f611871e 100644 (file)
@@ -1,3 +1,8 @@
+Mon Aug  2 23:45:45 1999  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       * dwarf2out.c (add_location_or_const_value_attribute): Correct
+       test for sizes of passed and declared parameter types.
+
 Mon Aug  2 12:45:09 1999  Richard Henderson  <rth@cygnus.com>
 
        * alpha.c (override_options): Don't force ALPHA_TP_PROG for ev6.
index 2fe888f543d82473c0eb809f527c458736beab52..de3d26fcb34714f87b3090e969ca44e7a425136c 100644 (file)
@@ -7188,7 +7188,8 @@ add_location_or_const_value_attribute (die, decl)
            rtl = DECL_INCOMING_RTL (decl);
          else if (! BYTES_BIG_ENDIAN
                   && TREE_CODE (declared_type) == INTEGER_TYPE
-                  && TYPE_SIZE (declared_type) <= TYPE_SIZE (passed_type))
+                  && (GET_MODE_SIZE (TYPE_MODE (declared_type))
+                      <= GET_MODE_SIZE (TYPE_MODE (passed_type))))
                rtl = DECL_INCOMING_RTL (decl);
        }