From: Marek Polacek Date: Fri, 30 Aug 2019 13:55:59 +0000 (+0000) Subject: * doc/invoke.texi (-Wvolatile): Use @code for volatile. X-Git-Tag: misc/cutover-git~3028 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81e753d9c8a5930b5465676304df5d0d0c90294e;p=thirdparty%2Fgcc.git * doc/invoke.texi (-Wvolatile): Use @code for volatile. From-SVN: r275178 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f902b554286d..e9226d8ed688 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-08-30 Marek Polacek + + * doc/invoke.texi (-Wvolatile): Use @code for volatile. + 2019-08-30 Bernd Edlinger * config/arm/arm.md (unaligned_loaddi, diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index aa9886ee09f2..44a8801e5580 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -3520,13 +3520,14 @@ a conversion function will never be called. @item -Wvolatile @r{(C++ and Objective-C++ only)} @opindex Wvolatile @opindex Wno-volatile -Warn about deprecated uses of the volatile qualifier. This includes postfix -and prefix @code{++} and @code{--} expressions of volatile-qualified types, -using simple assignments where the left operand is a volatile-qualified -non-class type for their value, compound assignments where the left operand -is a volatile-qualified non-class type, volatile-qualified function return -type, volatile-qualified parameter type, and structured bindings of a -volatile-qualified type. This usage was deprecated in C++20. +Warn about deprecated uses of the @code{volatile} qualifier. This includes +postfix and prefix @code{++} and @code{--} expressions of +@code{volatile}-qualified types, using simple assignments where the left +operand is a @code{volatile}-qualified non-class type for their value, +compound assignments where the left operand is a @code{volatile}-qualified +non-class type, @code{volatile}-qualified function return type, +@code{volatile}-qualified parameter type, and structured bindings of a +@code{volatile}-qualified type. This usage was deprecated in C++20. Enabled by default with @option{-std=c++2a}. @end table