PR c++/91361 * c-opts.c (c_common_post_options): Enable -Wvolatile by default for C++2a, unless -Wno-deprecated. * c.opt (Wvolatile): New warning. * cp-gimplify.c (cp_fold): Set TREE_THIS_VOLATILE. * decl.c (grokdeclarator): Warn about a volatile-qualified structured binding and return type. (grokparms): Warn about a volatile-qualified function parameter. * expr.c (mark_use) <case MODIFY_EXPR>: Emit a -Wvolatile warning. * typeck.c (cp_build_unary_op): Emit a -Wvolatile warning for pre and post ++/-- on a volatile operand. (genericize_compound_lvalue): Use a better location. Don't lose TREE_THIS_VOLATILE. (cp_build_modify_expr): Emit a -Wvolatile warning for a compound assignment whose LHS is volatile-qualified. Build the assignment with a more precise location. * doc/invoke.texi: Document -Wvolatile. * c-c++-common/Wbool-operation-1.c: Use -Wno-volatile in C++. * c-c++-common/gomp/atomic-1.c: Likewise. * c-c++-common/gomp/atomic-9.c: Likewise. * c-c++-common/gomp/depend-iterator-1.c: Likewise. * c-c++-common/gomp/loop-1.c: Adjust warning location for C++. * c-c++-common/gomp/order-3.c: Likewise. * c-c++-common/pr69733.c: Use -Wno-volatile in C++. * c-c++-common/spec-barrier-2.c: Likewise. * c-c++-common/tm/pr54893.c: Likewise. * g++.dg/cpp0x/pr65327.C: Add dg-warning. * g++.dg/cpp0x/rv-conv2.C: Likewise. * g++.dg/cpp0x/rv1n.C: Likewise. * g++.dg/cpp0x/rv1p.C: Likewise. * g++.dg/cpp0x/rv2n.C: Likewise. * g++.dg/cpp0x/rv2p.C: Likewise. * g++.dg/cpp0x/rv3n.C: Likewise. * g++.dg/cpp0x/rv3p.C: Likewise. * g++.dg/cpp0x/rv4n.C: Likewise. * g++.dg/cpp0x/rv4p.C: Likewise. * g++.dg/cpp0x/rv5n.C: Likewise. * g++.dg/cpp0x/rv5p.C: Likewise. * g++.dg/cpp0x/rv6n.C: Likewise. * g++.dg/cpp0x/rv6p.C: Likewise. * g++.dg/cpp0x/rv7n.C: Likewise. * g++.dg/cpp0x/rv7p.C: Likewise. * g++.dg/cpp0x/rv8p.C: Likewise. * g++.dg/cpp0x/trailing14.C: Use -Wno-volatile. * g++.dg/cpp1y/new1.C: Add dg-warning. * g++.dg/cpp2a/volatile1.C: New test. * g++.dg/cpp2a/volatile2.C: New test. * g++.dg/cpp2a/volatile3.C: New test. * g++.dg/cpp2a/volatile4.C: New test. * g++.dg/expr/bool3.C: Add dg-warning. * g++.dg/expr/bool4.C: Likewise. * g++.dg/expr/cond9.C: Likewise. * g++.dg/ext/vector25.C: Likewise. * g++.dg/gomp/depend-iterator-1.C: Use -Wno-volatile. * g++.dg/inherit/covariant21.C: Add dg-warning. * g++.dg/init/ref18.C: Likewise. * g++.dg/ipa/pr63838.C: Likewise. * g++.dg/overload/rvalue2.C: Likewise. * g++.dg/parse/semicolon4.C: Likewise. * g++.dg/warn/Wreturn-type-4.C: Likewise. * g++.dg/warn/pr36069.C: Likewise. * g++.old-deja/g++.mike/p9506.C: Likewise. * g++.old-deja/g++.other/volatile1.C: Likewise. From-SVN: r275022
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
access1.C | Loading commit data... | |
access2.C | Loading commit data... | |
access3.C | Loading commit data... | |
access4.C | Loading commit data... | |
access5.C | Loading commit data... | |
access6.C | Loading commit data... | |
access7.C | Loading commit data... | |
access8.C | Loading commit data... | |
access9.C | Loading commit data... | |
ambig1.C | Loading commit data... | |
base1.C | Loading commit data... | |
base2.C | Loading commit data... | |
base3.C | Loading commit data... | |
cond1.C | Loading commit data... | |
conv1.C | Loading commit data... | |
conv2.C | Loading commit data... | |
conv3.C | Loading commit data... | |
covariant1.C | Loading commit data... | |
covariant10.C | Loading commit data... | |
covariant11.C | Loading commit data... | |
covariant12.C | Loading commit data... | |
covariant13.C | Loading commit data... | |
covariant14.C | Loading commit data... | |
covariant15.C | Loading commit data... | |
covariant16.C | Loading commit data... | |
covariant17.C | Loading commit data... | |
covariant18.C | Loading commit data... | |
covariant19.C | Loading commit data... | |
covariant2.C | Loading commit data... | |
covariant20.C | Loading commit data... | |
covariant21.C | Loading commit data... | |
covariant22.C | Loading commit data... | |
covariant3.C | Loading commit data... | |
covariant4.C | Loading commit data... | |
covariant5.C | Loading commit data... | |
covariant6.C | Loading commit data... | |
covariant7.C | Loading commit data... | |
covariant8.C | Loading commit data... | |
covariant9.C | Loading commit data... | |
crash1.C | Loading commit data... | |
crash2.C | Loading commit data... | |
crash3.C | Loading commit data... | |
crash4.C | Loading commit data... | |
crash5.C | Loading commit data... | |
crash6.C | Loading commit data... | |
error1.C | Loading commit data... | |
error2.C | Loading commit data... | |
error3.C | Loading commit data... | |
error4.C | Loading commit data... | |
error5.C | Loading commit data... | |
implicit-trivial1.C | Loading commit data... | |
local1.C | Loading commit data... | |
local2.C | Loading commit data... | |
local3.C | Loading commit data... | |
multiple1.C | Loading commit data... | |
namespace-as-base.C | Loading commit data... | |
null1.C | Loading commit data... | |
operator1.C | Loading commit data... | |
operator2.C | Loading commit data... | |
override-attribs.C | Loading commit data... | |
override1.C | Loading commit data... | |
pr30297.C | Loading commit data... | |
pr48798.C | Loading commit data... | |
pr57942.C | Loading commit data... | |
protected1.C | Loading commit data... | |
ptrmem1.C | Loading commit data... | |
ptrmem2.C | Loading commit data... | |
ptrmem3.C | Loading commit data... | |
pure1.C | Loading commit data... | |
sizeof1.C | Loading commit data... | |
template-as-base.C | Loading commit data... | |
thunk1.C | Loading commit data... | |
thunk10.C | Loading commit data... | |
thunk11-aux.cc | Loading commit data... | |
thunk11.C | Loading commit data... | |
thunk11.h | Loading commit data... | |
thunk2.C | Loading commit data... | |
thunk3.C | Loading commit data... | |
thunk4.C | Loading commit data... | |
thunk5.C | Loading commit data... | |
thunk6.C | Loading commit data... | |
thunk7.C | Loading commit data... | |
thunk8.C | Loading commit data... | |
thunk9.C | Loading commit data... | |
typedef1.C | Loading commit data... | |
typeinfo1.C | Loading commit data... | |
union1.C | Loading commit data... | |
union2.C | Loading commit data... | |
union3.C | Loading commit data... | |
using1.C | Loading commit data... | |
using2.C | Loading commit data... | |
using3.C | Loading commit data... | |
using4.C | Loading commit data... | |
using5.C | Loading commit data... | |
using6.C | Loading commit data... | |
using7.C | Loading commit data... | |
using8.C | Loading commit data... | |
vdtor1.C | Loading commit data... | |
virtual1.C | Loading commit data... | |
virtual10.C | Loading commit data... | |
virtual11.C | Loading commit data... | |
virtual12.C | Loading commit data... | |
virtual13.C | Loading commit data... | |
virtual14.C | Loading commit data... | |
virtual2.C | Loading commit data... | |
virtual3.C | Loading commit data... | |
virtual4.C | Loading commit data... | |
virtual5.C | Loading commit data... | |
virtual6.C | Loading commit data... | |
virtual7.C | Loading commit data... | |
virtual8.C | Loading commit data... | |
virtual9.C | Loading commit data... | |
volatile1.C | Loading commit data... |