summaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 7feabee95a2..34941e008ae 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -5266,7 +5266,7 @@ builtin_define_with_int_value (macro, value)
static void
builtin_define_with_hex_fp_value (macro, type, digits, hex_str, fp_suffix)
const char *macro;
- tree type;
+ tree type ATTRIBUTE_UNUSED;
int digits;
const char *hex_str;
const char *fp_suffix;
@@ -5284,8 +5284,8 @@ builtin_define_with_hex_fp_value (macro, type, digits, hex_str, fp_suffix)
it's easy to get the exact correct value), parse it as a real,
then print it back out as decimal. */
- real = REAL_VALUE_HTOF (hex_str, TYPE_MODE (type));
- REAL_VALUE_TO_DECIMAL (real, dec_str, digits);
+ real_from_string (&real, hex_str);
+ real_to_decimal (dec_str, &real, digits);
sprintf (buf, "%s=%s%s", macro, dec_str, fp_suffix);
cpp_define (parse_in, buf);