diff options
author | wcohen <wcohen@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-15 17:41:27 +0000 |
---|---|---|
committer | wcohen <wcohen@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-09-15 17:41:27 +0000 |
commit | e0148bb1289468b629cbda1164e256cc2d34261c (patch) | |
tree | c8b3fb0f10c7582f853f1ee441e1d93d3fa917b5 | |
parent | 026f2c7ab2f478a2d628a14d6010c55ae835cf59 (diff) |
Revision to accurately generate debugging information
for constant parameters to inlined functions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36440 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 6 |
2 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 44a42614df4..df7725742ff 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2000-09-15 Will Cohen <wcohen@redhat.com> + + * dwarf2out.c (add_const_value_attribute): Changed array into a + xmalloced object, so it exists after function exit. + (free_AT): Added case for dw_val_class_float to free allocated + memory. + 2000-09-15 Kazu Hirata <kazu@hxi.com> * config/i386/i386.md: Fix a comment typo. @@ -79,6 +86,7 @@ Fri 15-Sep-2000 06:49:07 BST Neil Booth <NeilB@earthling.net> Remove undefine before config/elfos.h. * config/sh/t-sh (EXTRA_MULTILIB_PARTS): Comment out. +>>>>>>> 1.7757 2000-09-14 Kazu Hirata <kazu@hxi.com> * invoke.texi (H8/300 Options): Add -ms2600. @@ -177,6 +185,7 @@ Tue Sep 12 13:51:13 2000 Denis Chertykov <denisc@overta.ru> (extendhisi2): Use `movw' for enhanced avr cores. (zero_extendhisi2): Likewise. +>>>>>>> 1.7742 Wed Sep 13 02:31:23 EDT 2000 John Wehle (john@feith.com) * alias.c (find_base_term): Use frame_pointer_rtx diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index de67f8553b6..471308d9766 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -4603,6 +4603,10 @@ free_AT (a) free (a->dw_attr_val.v.val_str); break; + case dw_val_class_float: + free (a->dw_attr_val.v.val_float.array); + break; + default: break; } @@ -7670,7 +7674,7 @@ add_const_value_attribute (die, rtl) if (GET_MODE_CLASS (mode) == MODE_FLOAT) { register unsigned length = GET_MODE_SIZE (mode) / sizeof (long); - long array[4]; + long *array = (long *) xmalloc (sizeof (long) * 4); REAL_VALUE_TYPE rv; REAL_VALUE_FROM_CONST_DOUBLE (rv, rtl); |