Commit 0281a06f by Joseph Myers Committed by Jeff Law

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
parent 3319c1b8
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.
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment