re PR middle-end/86095 (documentation for -Wunsafe-loop-optimizations references...
authorJakub Jelinek <jakub@redhat.com>
Sat, 16 Jun 2018 06:51:32 +0000 (08:51 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 16 Jun 2018 06:51:32 +0000 (08:51 +0200)
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
gcc/common.opt
gcc/doc/invoke.texi

index 7fa9a28b7a8e37da601c902ec82ecc387982bf1f..c320b876176afc4a39d676bc289ba18199f454ba 100644 (file)
@@ -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
index efbeba338193eab1804ef321745aecfd943fb0a1..0d1445b852977c7384eb4b8db86b07177d241900 100644 (file)
@@ -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)
index d0941e920b495d8c201b3c0c6d6410513f7ee4a9..9bb1a4910b2a3f1e65ddbf0fbf347cf25b71021b 100644 (file)
@@ -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