On June 15, 2018 9:08:05 PM GMT+02:00, Jakub Jelinek <ja...@redhat.com> wrote:
>Hi!
>
>As mentioned in the PR, all traces of this warning option except these
>were removed earlier, so the warning option does nothing.
>
>The following patch removes its documentation and makes it clear it
>does
>nothing.  Bootstrapped/regtested on x86_64-linux and i686-linux, ok for
>trunk/8.2?

OK. 

Richard. 

>2018-06-15  Jakub Jelinek  <ja...@redhat.com>
>
>       PR middle-end/86095
>       * common.opt (Wunsafe-loop-optimizations): Add Ignore, remove Var,
>       documented as preserved for backward compatibility only.
>       * doc/invoke.texi: Remove -Wunsafe-loop-optimizations documentation.
>
>--- gcc/common.opt.jj  2018-06-14 13:14:52.124948298 +0200
>+++ gcc/common.opt     2018-06-15 14:29:53.824162546 +0200
>@@ -646,8 +646,8 @@ Common Var(warn_null_dereference) Warnin
>Warn if dereferencing a NULL pointer may lead to erroneous or undefined
>behavior.
> 
> Wunsafe-loop-optimizations
>-Common Var(warn_unsafe_loop_optimizations) Warning
>-Warn if the loop cannot be optimized due to nontrivial assumptions.
>+Common Ignore Warning
>+Does nothing. Preserved for backward compatibility.
> 
> Wmissing-noreturn
> Common Warning Alias(Wsuggest-attribute=noreturn)
>--- gcc/doc/invoke.texi.jj     2018-06-14 13:14:49.122945691 +0200
>+++ gcc/doc/invoke.texi        2018-06-15 14:30:22.102188482 +0200
>@@ -323,7 +323,7 @@ Objective-C and Objective-C++ Dialects}.
> -Wswitch-unreachable  -Wsync-nand @gol
>-Wsystem-headers  -Wtautological-compare  -Wtrampolines  -Wtrigraphs
>@gol
> -Wtype-limits  -Wundef @gol
>--Wuninitialized  -Wunknown-pragmas  -Wunsafe-loop-optimizations @gol
>+-Wuninitialized  -Wunknown-pragmas @gol
> -Wunsuffixed-float-constants  -Wunused  -Wunused-function @gol
> -Wunused-label  -Wunused-local-typedefs  -Wunused-macros @gol
> -Wunused-parameter  -Wno-unused-result @gol
>@@ -6000,14 +6000,6 @@ If the stack usage is (partly) dynamic a
> @end smallexample
> @end itemize
> 
>-@item -Wunsafe-loop-optimizations
>-@opindex Wunsafe-loop-optimizations
>-@opindex Wno-unsafe-loop-optimizations
>-Warn if the loop cannot be optimized because the compiler cannot
>-assume anything on the bounds of the loop indices.  With
>-@option{-funsafe-loop-optimizations} warn if the compiler makes
>-such assumptions.
>-
> @item -Wno-pedantic-ms-format @r{(MinGW targets only)}
> @opindex Wno-pedantic-ms-format
> @opindex Wpedantic-ms-format
>
>       Jakub

Reply via email to