c.opt: Add -Wnoexcept.
authorJason Merrill <jason@redhat.com>
Wed, 16 Jun 2010 15:45:36 +0000 (11:45 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 16 Jun 2010 15:45:36 +0000 (11:45 -0400)
commit59f9c2ed530507a5dcaaf4c6d3789b908dc3dfa6
treed0cfe8570eb95b543a4e2033811af7af2bda6204
parent7c69566f11b2361bcfac2c53e385a271792d09f2
c.opt: Add -Wnoexcept.

* c.opt: Add -Wnoexcept.
* except.c (check_noexcept_r): Return the problematic function.
(finish_noexcept_expr): Give -Wnoexcept warning.  Add complain parm.
* pt.c (tsubst_copy_and_build): Pass it.
* parser.c (cp_parser_unary_expression): Likewise.
* cp-tree.h: Adjust prototype.

From-SVN: r160842
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/except.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/noexcept03.C