From b97fffd6c626b5e8ff261e01122566914b844a22 Mon Sep 17 00:00:00 2001 From: jakub Date: Sat, 16 Jun 2018 06:51:32 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261679 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/common.opt | 4 ++-- gcc/doc/invoke.texi | 10 +--------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7fa9a28b7a8..c320b876176 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 efbeba33819..0d1445b8529 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 d0941e920b4..9bb1a4910b2 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 -- 2.11.4.GIT