aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c.opt
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-10-25 11:54:00 -0400
committerJason Merrill <jason@gcc.gnu.org>2012-10-25 11:54:00 -0400
commitf14edc1af5f9149d913221f39dc96980d7ac73a2 (patch)
treebed8a193992a8a72ab5ff86d67559fc50a45b33e /gcc/c-family/c.opt
parent57c3feb40a875ec85620513b49c758c6076a289a (diff)
downloadgcc-f14edc1af5f9149d913221f39dc96980d7ac73a2.zip
gcc-f14edc1af5f9149d913221f39dc96980d7ac73a2.tar.gz
gcc-f14edc1af5f9149d913221f39dc96980d7ac73a2.tar.bz2
Core 1402
Core 1402 cp/ * call.c (joust): An implicitly deleted move function is worse than any non-deleted function. * method.c (process_subob_fn): No special rules for move. (synthesized_method_walk, implicitly_declare_fn): Likewise. Warn about virtual base with non-trivial move assignment. * cp-tree.h (struct lang_decl_fn): Remove suppress_implicit_decl. (FNDECL_SUPPRESS_IMPLICIT_DECL): Remove. c-family/ * c.opt (Wvirtual-move-assign): New. From-SVN: r192813
Diffstat (limited to 'gcc/c-family/c.opt')
-rw-r--r--gcc/c-family/c.opt4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index 60cb726..7eb66c6 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -741,6 +741,10 @@ Wvolatile-register-var
C ObjC C++ ObjC++ Var(warn_volatile_register_var) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
Warn when a register variable is declared volatile
+Wvirtual-move-assign
+C++ ObjC++ Var(warn_virtual_move_assign) Warning Init(1)
+Warn if a virtual base has a non-trivial move assignment operator
+
Wwrite-strings
C ObjC C++ ObjC++ Var(warn_write_strings) Warning
In C++, nonzero means warn about deprecated conversion from string literals to 'char *'. In C, similar warning, except that the conversion is of course not deprecated by the ISO C standard.