Message ID | 20160930081035.GX7282@tucnak.redhat.com |
---|---|
State | New |
Headers | show |
On Fri, Sep 30, 2016 at 4:10 AM, Jakub Jelinek <jakub@redhat.com> wrote: > Hi! > > On Thu, Sep 29, 2016 at 10:57:07PM +0000, Joseph Myers wrote: >> This is missing documentation of the new -Wregister option in invoke.texi. > > While I had it in my head when working on the patch, I forgot to do that in the end. > Fixed thusly, ok for trunk? OK. But also, the patch has introduced several check-c++1z failures: > FAIL: g++.dg/charset/asm2.c -std=c++1z (test for excess errors) > FAIL: g++.dg/ext/asm3.C -std=c++1z (test for excess errors) > FAIL: g++.dg/tls/diag-2.C -std=c++1z (test for excess errors) > FAIL: g++.dg/tls/diag-4.C -std=c++1z (test for excess errors) > FAIL: g++.old-deja/g++.brendan/warnings4.C -std=c++1z (test for excess errors) > FAIL: g++.old-deja/g++.eh/ia64-1.C -std=gnu++1z (test for excess errors) > FAIL: g++.old-deja/g++.jason/enum3.C -std=gnu++1z (test for excess errors) > FAIL: g++.old-deja/g++.mike/net31.C -std=c++1z (test for excess errors) > FAIL: g++.old-deja/g++.mike/p700.C -std=gnu++1z (test for excess errors) > FAIL: g++.old-deja/g++.other/regstack.C -std=gnu++1z (test for excess errors)
--- gcc/doc/invoke.texi.jj 2016-09-29 22:53:11.000000000 +0200 +++ gcc/doc/invoke.texi 2016-09-30 09:55:28.819581224 +0200 @@ -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 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
Hi! On Thu, Sep 29, 2016 at 10:57:07PM +0000, Joseph Myers wrote: > This is missing documentation of the new -Wregister option in invoke.texi. While I had it in my head when working on the patch, I forgot to do that in the end. Fixed thusly, ok for trunk? 2016-09-30 Jakub Jelinek <jakub@redhat.com> * doc/invoke.texi (-Wregister): Document. Jakub