* c-lex.c (yylex): Accept 'f' in mantissa of hex float constant.
authorStephen L Moshier <moshier@mediaone.net>
Sun, 31 Oct 1999 04:42:55 +0000 (04:42 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 31 Oct 1999 04:42:55 +0000 (22:42 -0600)
From-SVN: r30284

gcc/ChangeLog
gcc/c-lex.c

index 1d60c3a306707803dc88fbde812de63b68ade8a5..c2b522c6cfe47628e46a0acec994895e42f58b14 100644 (file)
@@ -1,3 +1,7 @@
+Sat Oct 30 22:42:50 1999  Stephen L Moshier <moshier@mediaone.net>
+
+       * 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
index f8c9158f548c893350ac221e0f96d9f4a1da29c9..ab71f787228aca4d6065b1ab30ccec0ed4bf9606 100644 (file)
@@ -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 == '.')
              {