diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-10-01 00:47:29 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-10-01 00:47:29 +0200 |
commit | 5afa955f12d5be0c748e999f18fa5f57881115b8 (patch) | |
tree | 62ca2ea14e39e00f7c6aade4499b645f9927de67 /gcc | |
parent | 012447ea171dfbac808e5cbc5e0191c3b8680c22 (diff) | |
download | gcc-5afa955f12d5be0c748e999f18fa5f57881115b8.zip gcc-5afa955f12d5be0c748e999f18fa5f57881115b8.tar.gz gcc-5afa955f12d5be0c748e999f18fa5f57881115b8.tar.bz2 |
* doc/invoke.texi (-Wregister): Document.
From-SVN: r240685
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 11 |
2 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 83f5420..c2a590c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-09-30 Jakub Jelinek <jakub@redhat.com> + + * doc/invoke.texi (-Wregister): Document. + 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de> * configure.ac: Split CHECKING_P into CHECKING_P and diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 0121560..fa15529 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -213,7 +213,7 @@ in the following sections. -Wabi=@var{n} -Wabi-tag -Wconversion-null -Wctor-dtor-privacy @gol -Wdelete-non-virtual-dtor -Wliteral-suffix -Wmultiple-inheritance @gol -Wnamespaces -Wnarrowing @gol --Wnoexcept -Wnon-virtual-dtor -Wreorder @gol +-Wnoexcept -Wnon-virtual-dtor -Wreorder -Wregister @gol -Weffc++ -Wstrict-null-sentinel -Wtemplates @gol -Wno-non-template-friend -Wold-style-cast @gol -Woverloaded-virtual -Wno-pmf-conversions @gol @@ -2840,6 +2840,15 @@ case it is possible but unsafe to delete an instance of a derived class through a pointer to the class itself or base class. This warning is automatically enabled if @option{-Weffc++} is specified. +@item -Wregister @r{(C++ and Objective-C++ only)} +@opindex Wregister +@opindex Wno-register +Warn on uses of the @code{register} storage class specifier, except +when it is part of the GNU @ref{Explicit Register Variables} extension. +The use of the @code{register} keyword as storage class specifier has +been deprecated in C++11 and removed in C++17. +Enabled by default with @option{-std=c++1z}. + @item -Wreorder @r{(C++ and Objective-C++ only)} @opindex Wreorder @opindex Wno-reorder |