diff options
author | Hans-Peter Nilsson <hp@bitrange.com> | 1999-08-03 02:46:05 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1999-08-03 02:46:05 -0400 |
commit | 555b644206c5f90f6c397b359a16d39d846cc5f0 (patch) | |
tree | 6b057b0a2dc6b4fb74e241d08d96d36b089e9f7d /gcc/dwarf2out.c | |
parent | c354f40df2214ac7e6e2df4ac7df84476ba154ed (diff) | |
download | gcc-555b644206c5f90f6c397b359a16d39d846cc5f0.zip gcc-555b644206c5f90f6c397b359a16d39d846cc5f0.tar.gz gcc-555b644206c5f90f6c397b359a16d39d846cc5f0.tar.bz2 |
dwarf2out.c (add_location_or_const_value_attribute): Correct test for sizes of passed and declared parameter types.
* dwarf2out.c (add_location_or_const_value_attribute): Correct
test for sizes of passed and declared parameter types.
From-SVN: r28441
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index a1e8ead..33f7d97 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); } |