From: Hans-Peter Nilsson Date: Tue, 3 Aug 1999 07:04:37 +0000 (+0000) Subject: dwarf2out.c (add_location_or_const_value_attribute): Correct test for sizes of passed... X-Git-Tag: releases/gcc-2.95.1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23b9aef48b8ffa9f8df5d658f1d42cd5069b65d9;p=thirdparty%2Fgcc.git 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: r28444 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ef9f5ba6b584..8e38116016ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Aug 2 23:45:45 1999 Hans-Peter Nilsson + + * 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 * alpha.c (override_options): Don't force ALPHA_TP_PROG for ev6. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 2fe888f543d8..de3d26fcb347 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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); }