diff options
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 2d1ad3415a9..f2e9d5d1629 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -925,13 +925,8 @@ interpret_float (token, flags) memcpy (copy, token->val.str.text, copylen); copy[copylen] = '\0'; - /* The second argument, machine_mode, of REAL_VALUE_ATOF tells the - desired precision of the binary result of decimal-to-binary - conversion. */ - if (flags & CPP_N_HEX) - real = REAL_VALUE_HTOF (copy, TYPE_MODE (type)); - else - real = REAL_VALUE_ATOF (copy, TYPE_MODE (type)); + real_from_string (&real, copy); + real_convert (&real, TYPE_MODE (type), &real); /* A diagnostic is required for "soft" overflow by some ISO C testsuites. This is not pedwarn, because some people don't want |