]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
re PR target/39027 (double floating point suffix of 'd' and 'D' not accepted)
authorJanis Johnson <janis187@us.ibm.com>
Wed, 1 Apr 2009 17:31:26 +0000 (17:31 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Wed, 1 Apr 2009 17:31:26 +0000 (17:31 +0000)
commit839a3b8ab591c78acfcbc99842cda631d2a3b829
tree6d2eb69c07acf9dfdd9f7f3af93d923a035bc1f3
parent667e8acbceb7f87159d098dc7d1fa8a7ddaebb17
re PR target/39027 (double floating point suffix of 'd' and 'D' not accepted)

gcc/
PR c/29027
* c-lex.c (interpret_float): Default (no suffix) is double.

libcpp/
PR c/29027
* include/cpplib.h (CPP_N_DEFAULT): Define.
* expr.c (interpret_float_suffix): Recognize d or D for double,
return new value for default.
(cpp_classify_number): Issue pedwarn for use of d or D in suffix.

gcc/testsuite/
PR c/29027
* gcc.dg/fltconst-1.c: Don't error for use of d or D in suffix.
* gcc.dg/fltconst-2.c: New test.
* gcc.dg/fltconst-double-pedantic-1.c: New test.
* gcc.dg/fltconst-double-pedantic-2.c: New test.

From-SVN: r145422
gcc/ChangeLog
gcc/c-lex.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fltconst-1.c
gcc/testsuite/gcc.dg/fltconst-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/fltconst-double-pedantic-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/fltconst-double-pedantic-2.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/expr.c
libcpp/include/cpplib.h