r146789 - in /trunk/gcc: ChangeLog c-decl.c tes...

jsm28@gcc.gnu.org jsm28@gcc.gnu.org
Sat Apr 25 23:30:00 GMT 2009


Author: jsm28
Date: Sat Apr 25 23:30:10 2009
New Revision: 146789

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146789
Log:
	* c-decl.c (build_enumerator): Allow values folding to integer
	constants but not integer constant expressions with a pedwarn if
	pedantic.

testsuite:
	* gcc.dg/enum-const-1.c, gcc.dg/enum-const-2.c,
	gcc.dg/enum-const-3.c: New tests.
	* gcc.dg/gnu89-const-expr-1.c, gcc.dg/gnu99-const-expr-1.c: Use
	-pedantic-errors.  Update expected diagnostics.

Added:
    trunk/gcc/testsuite/gcc.dg/enum-const-1.c
    trunk/gcc/testsuite/gcc.dg/enum-const-2.c
    trunk/gcc/testsuite/gcc.dg/enum-const-3.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/gnu89-const-expr-1.c
    trunk/gcc/testsuite/gcc.dg/gnu99-const-expr-1.c



More information about the Gcc-cvs mailing list