OSDN Git Service

* c-lex.c (lex_number): If pedantic and not C99, pedwarn exactly
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 May 2001 11:02:17 +0000 (11:02 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 May 2001 11:02:17 +0000 (11:02 +0000)
commiteb5b685e4b32035bb45385de0d980d4220fd6812
treef398e54c8cb6f6025faa0a96115163d6aa85eb37
parent00ed89e144213f7e7ee98bfb6ab32fff87c17379
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42440 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-lex.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-hexfloat-1.c