OSDN Git Service

ChangeLog:
authordougkwan <dougkwan@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Jan 2008 00:22:38 +0000 (00:22 +0000)
committerdougkwan <dougkwan@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Jan 2008 00:22:38 +0000 (00:22 +0000)
commit36e37a8772797c12053db9ddaeb88e728996d815
treee1ab0d8cbc735be34bf3b43df3a196670e70025b
parente0c9c00f8e3d73854993553257b6438b617989ab
ChangeLog:

2008-01-12  Doug Kwan  <dougkwan@google.com>

* c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
instead of OPT_Wreturn_type in warning due to ignored return type
qualifiers.
* c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
options included in -Wextra.
* c.opt: New option -Wignored_qualifiers.
* doc/invoke.texi (Warning Options, -Wextra): Add new option
-Wignore_qualifiers.
(-Wignored-qualifiers): Document.
(-Wreturn-type): Remove description of functionality now handled
by -Wignored-qualifiers.

cp/ChangeLog:

2008-01-12  Doug Kwan  <dougkwan@google.com>

* decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
instead of OPT_Wreturn_type in warning due to ignored return type
qualifiers.
* pt.c: (tsubst_function_type): Use OPT_Wignored_qualifiers
instead of OPT_Wreturn_type in warning due to ignored return type
qualifiers.

testsuite/ChangeLog:

2008-01-12  Doug Kwan  <dougkwan@google.com>

* gcc.dg/qual-return-1.c: Add -Wignored-qualifiers.
* g++.dg/warn/Wreturn-type-4.C: Replace -Wreturn-type by
-Wignored-qualifiers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131499 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/c-opts.c
gcc/c.opt
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wreturn-type-4.C
gcc/testsuite/gcc.dg/qual-return-1.c