From: Zack Weinberg Date: Mon, 29 Sep 2003 21:52:25 +0000 (+0000) Subject: * dwarf2out.c (add_const_value_attribute): Use real_to_target. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d464f1b822c8f291939773d7dedd773f87950de3;p=gcc.git * dwarf2out.c (add_const_value_attribute): Use real_to_target. From-SVN: r71918 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e7f10b304a..39b35a4b057 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2003-09-29 Zack Weinberg + * dwarf2out.c (add_const_value_attribute): Use real_to_target. + * varasm.c (assemble_real): Use real_to_target directly, calculate the number of significant elements of the result array and write them out in a loop, instead of using a giant diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 8362a698f16..6ff9079fe6d 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -9105,24 +9105,7 @@ add_const_value_attribute (dw_die_ref die, rtx rtl) REAL_VALUE_TYPE rv; REAL_VALUE_FROM_CONST_DOUBLE (rv, rtl); - switch (mode) - { - case SFmode: - REAL_VALUE_TO_TARGET_SINGLE (rv, array[0]); - break; - - case DFmode: - REAL_VALUE_TO_TARGET_DOUBLE (rv, array); - break; - - case XFmode: - case TFmode: - REAL_VALUE_TO_TARGET_LONG_DOUBLE (rv, array); - break; - - default: - abort (); - } + real_to_target (array, &rv, mode); add_AT_float (die, DW_AT_const_value, length, array); }