summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-03 06:46:05 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-03 06:46:05 +0000
commit0555382c38e8b2f65f80b0fae84dd95dda8a1c15 (patch)
tree6b057b0a2dc6b4fb74e241d08d96d36b089e9f7d /gcc
parent57e72292a1abd89b264af19adfa5439c07509212 (diff)
downloadgcc-0555382c38e8b2f65f80b0fae84dd95dda8a1c15.tar.gz
* dwarf2out.c (add_location_or_const_value_attribute): Correct
test for sizes of passed and declared parameter types. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28441 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e3f9157f531..07f4dd96ee3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index a1e8ead9e89..33f7d97e4c5 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -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);
}