From: Stephen L Moshier Date: Sun, 31 Oct 1999 04:42:55 +0000 (+0000) Subject: * c-lex.c (yylex): Accept 'f' in mantissa of hex float constant. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2949a9b6d71fa3fe581b43387f677a1503adad85;p=gcc.git * c-lex.c (yylex): Accept 'f' in mantissa of hex float constant. From-SVN: r30284 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d60c3a3067..c2b522c6cfe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Sat Oct 30 22:42:50 1999 Stephen L Moshier + + * c-lex.c (yylex): Accept 'f' in mantissa of hex float constant. + Sat Oct 30 22:19:26 1999 Jeffrey A Law (law@cygnus.com) * fold-const.c (fold): Fix thinko when optimizing comparisons 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 == '.') {