]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Doc: Fix description of -Wno-aggressive-loop-optimizations [PR78874]
authorSandra Loosemore <sloosemore@baylibre.com>
Sun, 6 Apr 2025 04:39:59 +0000 (04:39 +0000)
committerSandra Loosemore <sloosemore@baylibre.com>
Sun, 6 Apr 2025 04:46:43 +0000 (04:46 +0000)
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.

gcc/doc/invoke.texi

index 91ed43dc21a0c09056030326b02ac6e6e721c993..d5103f461dfd189d0e96602c0f483e584a510818 100644 (file)
@@ -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