From ee79110cfd00fb7422cb461f63bfbd39637c1962 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sat, 16 Jun 2018 08:51:32 +0200 Subject: re PR middle-end/86095 (documentation for -Wunsafe-loop-optimizations references options which have no effect any more) 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. From-SVN: r261679 --- gcc/ChangeLog | 5 +++++ gcc/common.opt | 4 ++-- gcc/doc/invoke.texi | 10 +--------- 3 files changed, 8 insertions(+), 11 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7fa9a28..c320b87 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2018-06-16 Jakub Jelinek + 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. + PR rtl-optimization/86108 * bb-reorder.c (create_forwarder_block): Renamed to ... (create_eh_forwarder_block): ... this. Split OLD_BB after labels and diff --git a/gcc/common.opt b/gcc/common.opt index efbeba3..0d1445b 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -646,8 +646,8 @@ Common Var(warn_null_dereference) Warning 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) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index d0941e9..9bb1a49 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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 @@ -6007,14 +6007,6 @@ If the stack usage is (partly) dynamic and not bounded, it's: @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 -- cgit v1.1