This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r144443 - in /branches/c-4_5-branch: gcc/Change...


Author: janis
Date: Thu Feb 26 01:02:22 2009
New Revision: 144443

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144443
Log:
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/
	PR c/29027
	* c-lex.c (interpret_float): Default (no suffix) is double.

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.

Added:
    branches/c-4_5-branch/gcc/testsuite/gcc.dg/fltconst-2.c
    branches/c-4_5-branch/gcc/testsuite/gcc.dg/fltconst-double-pedantic-1.c
    branches/c-4_5-branch/gcc/testsuite/gcc.dg/fltconst-double-pedantic-2.c
Modified:
    branches/c-4_5-branch/gcc/ChangeLog.c45
    branches/c-4_5-branch/gcc/c-lex.c
    branches/c-4_5-branch/gcc/testsuite/ChangeLog.c45
    branches/c-4_5-branch/gcc/testsuite/gcc.dg/fltconst-1.c
    branches/c-4_5-branch/libcpp/ChangeLog.c45
    branches/c-4_5-branch/libcpp/expr.c
    branches/c-4_5-branch/libcpp/include/cpplib.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]