r148611 - in /trunk/gcc: ChangeLog c-pch.c c-ty...

ian@gcc.gnu.org ian@gcc.gnu.org
Wed Jun 17 13:21:00 GMT 2009


Author: ian
Date: Wed Jun 17 13:21:23 2009
New Revision: 148611

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148611
Log:
./:
	* c-pch.c (get_ident): Don't set size of templ array.
	(pch_init): Don't set size of partial_pch array.

	* c-typeck.c (digest_init): If -Wc++-compat, warn about using a
	string constant to intialize an array whose size is the length of
	the string.
testsuite/:
	* gcc.dg/Wcxx-compat-14.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/Wcxx-compat-14.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-pch.c
    trunk/gcc/c-typeck.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list