Commit d464f1b8 by Zack Weinberg Committed by Zack Weinberg

* dwarf2out.c (add_const_value_attribute): Use real_to_target.

From-SVN: r71918
parent b409761a
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment