2003-09-15 Andreas Jaeger <aj@suse.de>
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Sep 2003 09:31:17 +0000 (09:31 +0000)
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Sep 2003 09:31:17 +0000 (09:31 +0000)
commit21dd958800ce8dfc89be000f614bbefe709ad04b
treee8af0c2a48f55bb04305f893645f855b6871b356
parentd025094cd3ce62f85ca7d625c9ab04eb8add3504
2003-09-15  Andreas Jaeger  <aj@suse.de>
            Kaveh R. Ghazi <ghazi@caip.rutgers.edu>

* doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
* c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
* c-parse.in: Warn about old-style parameter definition.
* c-common.c: Define warn_old_style_defintion.
* c-common.h: Declare it.
* c.opt: Add Wold-style-defintion.

testsuite:
2003-09-15  Andreas Jaeger  <aj@suse.de>

* gcc.dg/Wold-style-definition-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71400 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-common.c
gcc/c-common.h
gcc/c-opts.c
gcc/c-parse.in
gcc/c.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wold-style-definition-1.c [new file with mode: 0644]