aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorStephen L Moshier <moshier@mediaone.net>1999-10-31 04:42:55 +0000
committerJeff Law <law@gcc.gnu.org>1999-10-30 22:42:55 -0600
commit2949a9b6d71fa3fe581b43387f677a1503adad85 (patch)
tree084503a9b06edaa136d7f3bf2ae737e05a4250b3 /gcc
parent2a81679ebe3baa70a7558648a26e11b925535d99 (diff)
downloadgcc-2949a9b6d71fa3fe581b43387f677a1503adad85.zip
gcc-2949a9b6d71fa3fe581b43387f677a1503adad85.tar.gz
gcc-2949a9b6d71fa3fe581b43387f677a1503adad85.tar.bz2
* c-lex.c (yylex): Accept 'f' in mantissa of hex float constant.
From-SVN: r30284
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-lex.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1d60c3a..c2b522c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index f8c9158..ab71f78 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 == '.')
{