summaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-31 04:42:55 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-10-31 04:42:55 +0000
commita105785ff7a868298f71d15c7577ab0bec19b546 (patch)
tree084503a9b06edaa136d7f3bf2ae737e05a4250b3 /gcc/c-lex.c
parente29a9cc2848eb308f1599fe72faf70e495213dff (diff)
downloadgcc-a105785ff7a868298f71d15c7577ab0bec19b546.tar.gz
* c-lex.c (yylex): Accept 'f' in mantissa of hex float constant.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30284 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index f8c9158f548..ab71f787228 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -1569,7 +1569,9 @@ yylex ()
|| (ISALNUM (c) && c != 'l' && c != 'L'
&& c != 'u' && c != 'U'
&& c != 'i' && c != 'I' && c != 'j' && c != 'J'
- && (floatflag == NOT_FLOAT || ((c != 'f') && (c != 'F')))))
+ && (floatflag == NOT_FLOAT
+ || ((base != 16) && (c != 'f') && (c != 'F'))
+ || base == 16)))
{
if (c == '.')
{