r116435 - in /trunk/gcc: ChangeLog c-decl.c tes...
jsm28@gcc.gnu.org
jsm28@gcc.gnu.org
Fri Aug 25 21:11:00 GMT 2006
Author: jsm28
Date: Fri Aug 25 21:11:46 2006
New Revision: 116435
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116435
Log:
PR c/28299
* c-decl.c (start_function): Don't try to process prototype
information from old declaration that isn't a function.
testsuite:
* gcc.dg/funcdef-var-1.c, gcc.dg/funcdef-var-2.c: New tests.
* gcc.dg/pr20368-1.c, gcc.dg/pr20368-2.c, gcc.dg/pr20368-3.c:
Expect extra diagnostics.
Added:
trunk/gcc/testsuite/gcc.dg/funcdef-var-1.c
trunk/gcc/testsuite/gcc.dg/funcdef-var-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-decl.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/pr20368-1.c
trunk/gcc/testsuite/gcc.dg/pr20368-2.c
trunk/gcc/testsuite/gcc.dg/pr20368-3.c
More information about the Gcc-cvs
mailing list