https://gcc.gnu.org/g:13c9b353895fef8d5b1593b7527df41487c512d1

commit r15-9232-g13c9b353895fef8d5b1593b7527df41487c512d1
Author: Sandra Loosemore <sloosem...@baylibre.com>
Date:   Sun Apr 6 04:39:59 2025 +0000

    Doc: Fix description of -Wno-aggressive-loop-optimizations [PR78874]
    
    gcc/ChangeLog
            PR middle-end/78874
            * doc/invoke.texi (Warning Options): Fix description of
            -Wno-aggressive-loop-optimizations to reflect that this turns
            off the warning, and the default is for it to be enabled.

Diff:
---
 gcc/doc/invoke.texi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 91ed43dc21a0..d5103f461dfd 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -10109,8 +10109,9 @@ a warning.)
 @opindex Wno-aggressive-loop-optimizations
 @opindex Waggressive-loop-optimizations
 @item -Wno-aggressive-loop-optimizations
-Warn if in a loop with constant number of iterations the compiler detects
-undefined behavior in some statement during one or more of the iterations.
+Do not warn if the compiler detects undefined behavior in a loop with
+a constant number of iterations.  @option{-Waggressive-loop-optimizations}
+is enabled by default.
 
 @opindex Wno-attributes
 @opindex Wattributes

Reply via email to