b46b715d5b
gcc/c-family/ * c.opt (Wdeprecated-copy): New flag. gcc/cp/ * call.c (build_over_call): Warn about deprecated trivial fns. * class.c (classtype_has_user_copy_or_dtor): New. (type_build_ctor_call): Check TREE_DEPRECATED. (type_build_dtor_call): Likewise. * decl2.c (cp_warn_deprecated_use): Move from tree.c. Add checks. Return bool. Handle -Wdeprecated-copy. (mark_used): Use it. * decl.c (grokdeclarator): Remove redundant checks. * typeck2.c (build_functional_cast): Likewise. * method.c (lazily_declare_fn): Mark deprecated copy ops. * init.c (build_aggr_init): Only set TREE_USED if there are side-effects. libitm/ * beginend.cc (save): Disable -Werror=deprecated-copy. From-SVN: r260381 |
||
---|---|---|
.. | ||
config | ||
testsuite | ||
aatree.cc | ||
aatree.h | ||
acinclude.m4 | ||
aclocal.m4 | ||
alloc_c.cc | ||
alloc_cpp.cc | ||
alloc.cc | ||
barrier.cc | ||
beginend.cc | ||
ChangeLog | ||
clone.cc | ||
common.h | ||
config.h.in | ||
configure | ||
configure.ac | ||
configure.tgt | ||
containers.h | ||
dispatch.h | ||
eh_cpp.cc | ||
libitm_i.h | ||
libitm.h | ||
libitm.map | ||
libitm.spec.in | ||
libitm.texi | ||
local_atomic | ||
local.cc | ||
Makefile.am | ||
Makefile.in | ||
method-gl.cc | ||
method-ml.cc | ||
method-serial.cc | ||
query.cc | ||
retry.cc | ||
useraction.cc | ||
util.cc |