c-lex.c (lex_number): If pedantic and not C99...
authorJoseph Myers <jsm28@cam.ac.uk>
Tue, 22 May 2001 11:02:17 +0000 (12:02 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 22 May 2001 11:02:17 +0000 (12:02 +0100)
commitc215b29f5ae1766a562e33e594fabcde5e64a1a6
treef398e54c8cb6f6025faa0a96115163d6aa85eb37
parenta7bc0fbbfec9bbc01256ab9085b7783af06726fa
c-lex.c (lex_number): If pedantic and not C99...

* c-lex.c (lex_number): If pedantic and not C99, pedwarn exactly
once for hexadecimal floats, whether or not they contain a decimal
point.  Don't let the setting of pedantic otherwise affect the
parsing of hexadecimal floats.

testsuite:
* gcc.dg/c90-hexfloat-1.c: Add more tests.

From-SVN: r42440
gcc/ChangeLog
gcc/c-lex.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-hexfloat-1.c