OSDN Git Service

2008-08-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Aug 2008 23:15:31 +0000 (23:15 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Aug 2008 23:15:31 +0000 (23:15 +0000)
commit278e3a1f0b535449bd0f3081e8c8e072b2b4b242
tree78d365c089bbd5db307fb058a73ce73b455dad1f
parent4d41da0b1e44e341b3ffae7f3e995d4940a3f86b
2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR 28875
* flags.h (set_Wunused): Delete
* toplev.c (process_options): Handle Wunused flags here.
* opts.c (maybe_warn_unused_parameter): Delete.
(common_handle_option): Replace set_Wunused by warn_unused.
(set_Wextra): Do not handle Wunused-parameter here.
(set_Wunused): Delete.
* c-opts.c (c_common_handle_option): Replace set_Wunused by
warn_unused.
* common.opt (Wunused): Add Var and Init.
(Wunused-function): Likewise.
(Wunused-label): Likewise.
(Wunused-parameter): Likewise.
(Wunused-value): Likewise.
(Wunused-variable): Likewise.
fortran/
* options.c (set_Wall): Replace set_Wunused by warn_unused.
java/
* lang.c (java_handle_option): Replace set_Wunused with
warn_unused.
testsuite/
* gcc.dg/unused-6-no.c: New.
* gcc.dg/unused-6-WallWextra.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138890 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
gcc/ChangeLog
gcc/c-opts.c
gcc/common.opt
gcc/flags.h
gcc/fortran/ChangeLog
gcc/fortran/options.c
gcc/java/ChangeLog
gcc/java/lang.c
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/unused-6-WallWextra.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/unused-6-no.c [new file with mode: 0644]
gcc/toplev.c