OSDN Git Service

* c-lex.c (yylex): Don't pedwarn for hexadecimal floating point
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jul 2000 08:28:44 +0000 (08:28 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jul 2000 08:28:44 +0000 (08:28 +0000)
        constants in C99 mode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35075 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-lex.c

index 84fcf42..eb2e7b1 100644 (file)
@@ -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.
index f47ddac..fe1d03f 100644 (file)
@@ -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.  */