]> 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 06:46:05 +0000 (02:46 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 3 Aug 1999 06:46:05 +0000 (02:46 -0400)
* dwarf2out.c (add_location_or_const_value_attribute): Correct
test for sizes of passed and declared parameter types.

From-SVN: r28441

gcc/ChangeLog
gcc/dwarf2out.c

index e3f9157f53144399ec5e09d028266ccccc730aa3..07f4dd96ee30f7ba1ec8444cdce9959c707dcb73 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.
+
 Tue Aug  3 00:03:41 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * fixincludes: Fix the return type of bsearch, char* -> void*.
@@ -20,6 +25,7 @@ Mon Aug  2 17:02:08 1999  Jason Merrill  <jason@yorick.cygnus.com>
 
        * config/libgloss.h: Add a note discouraging use with ELF.
        * configure.in: Don't use libgloss.h for ELF targets.
+       Always use_collect2 on a.out targets.
 
 Mon Aug  2 16:27:42 1999  Jim Wilson  <wilson@cygnus.com>
 
index a1e8ead9e89e71faedb3cafb91550481693a36fb..33f7d97e4c5fc2c0eb3f0aded97dd6f396e068ee 100644 (file)
@@ -7186,7 +7186,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);
        }