aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-06-16 08:51:32 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2018-06-16 08:51:32 +0200
commitee79110cfd00fb7422cb461f63bfbd39637c1962 (patch)
treeb6e92d6669d88f2193abd61e6408c3a4d3913eae /gcc
parent81e994469991a4ddfd7ab91ca6d1a81b01e9f773 (diff)
downloadgcc-ee79110cfd00fb7422cb461f63bfbd39637c1962.zip
gcc-ee79110cfd00fb7422cb461f63bfbd39637c1962.tar.gz
gcc-ee79110cfd00fb7422cb461f63bfbd39637c1962.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/common.opt4
-rw-r--r--gcc/doc/invoke.texi10
3 files changed, 8 insertions, 11 deletions
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 <jakub@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.
+
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