From 0281a06fc8d5bfed1ecbd800712e023a017d5499 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 17 Jul 2000 02:28:44 -0600 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/c-lex.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 84fcf4254f7..eb2e7b158b8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-07-17 Joseph S. Myers + + * c-lex.c (yylex): Don't pedwarn for hexadecimal floating point + constants in C99 mode. + 2000-07-17 Kazu Hirata * fold-const.c: Fix comment typos. diff --git a/gcc/c-lex.c b/gcc/c-lex.c index f47ddac4440..fe1d03f4420 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. */ -- 2.30.2