mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 16:41:19 +08:00
* dwarf2out.c (add_const_value_attribute): Use real_to_target.
From-SVN: r71918
This commit is contained in:
parent
b409761a1f
commit
d464f1b822
@ -1,5 +1,7 @@
|
||||
2003-09-29 Zack Weinberg <zack@codesourcery.com>
|
||||
|
||||
* 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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user