diff options
Diffstat (limited to 'contrib/gcc/c-lex.c')
-rw-r--r-- | contrib/gcc/c-lex.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/gcc/c-lex.c b/contrib/gcc/c-lex.c index 108bc5cff174..9ec348cd04b6 100644 --- a/contrib/gcc/c-lex.c +++ b/contrib/gcc/c-lex.c @@ -640,6 +640,13 @@ interpret_float (const cpp_token *token, unsigned int flags) char *copy; size_t copylen; + /* Default (no suffix) is double. */ + if (flags & CPP_N_DEFAULT) + { + flags ^= CPP_N_DEFAULT; + flags |= CPP_N_MEDIUM; + } + /* Decode type based on width and properties. */ if (flags & CPP_N_DFLOAT) if ((flags & CPP_N_WIDTH) == CPP_N_LARGE) |