aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2000-07-17 02:28:44 -0600
committerJeff Law <law@gcc.gnu.org>2000-07-17 02:28:44 -0600
commit0281a06fc8d5bfed1ecbd800712e023a017d5499 (patch)
tree2383bd4f18957301a431290075c8bd08265b637c /gcc
parent3319c1b88747a8bfb23497a82f9040bdf8a0ce69 (diff)
downloadgcc-0281a06fc8d5bfed1ecbd800712e023a017d5499.zip
gcc-0281a06fc8d5bfed1ecbd800712e023a017d5499.tar.gz
gcc-0281a06fc8d5bfed1ecbd800712e023a017d5499.tar.bz2
c-lex.c (yylex): Don't pedwarn for hexadecimal floating point constants in C99 mode.
* c-lex.c (yylex): Don't pedwarn for hexadecimal floating point constants in C99 mode. From-SVN: r35075
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-lex.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 84fcf42..eb2e7b1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
+
+ * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
+ constants in C99 mode.
+
2000-07-17 Kazu Hirata <kazu@hxi.com>
* fold-const.c: Fix comment typos.
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index f47ddac..fe1d03f 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -1568,7 +1568,7 @@ yylex ()
{
if (c == '.')
{
- if (base == 16 && pedantic)
+ if (base == 16 && pedantic && !flag_isoc99)
pedwarn ("floating constant may not be in radix 16");
if (floatflag == TOO_MANY_POINTS)
/* We have already emitted an error. Don't need another. */