invoke.texi: Document -Wdelete-non-virtual-dtor.
authorJonathan Wakely <jwakely.gcc@gmail.com>
Sat, 4 Jun 2011 16:18:36 +0000 (16:18 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 4 Jun 2011 16:18:36 +0000 (17:18 +0100)
commit014ab419efc12a59efebd2720d79e1c055675c85
tree4ce2195c12b8ddb26d94b2802f6dbe2017ee0eee
parentf90d37ec0c1fbac6a987b546167ba9a26d399c5f
invoke.texi: Document -Wdelete-non-virtual-dtor.

* doc/invoke.texi: Document -Wdelete-non-virtual-dtor.

c-family:
* c.opt: Add -Wdelete-non-virtual-dtor.
* c-opts.c (c_common_handle_option): Include it in -Wall.

cp:
* init.c (build_delete): Warn when deleting type with non-virtual
destructor.

testsuite:
* testsuite/g++.dg/warn/delete-non-virtual-dtor.C: New.

From-SVN: r174643
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-opts.c
gcc/c-family/c.opt
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/delete-non-virtual-dtor.C [new file with mode: 0644]