From: Sandra Loosemore Date: Sun, 6 Apr 2025 04:39:59 +0000 (+0000) Subject: Doc: Fix description of -Wno-aggressive-loop-optimizations [PR78874] X-Git-Tag: basepoints/gcc-16~321 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13c9b353895fef8d5b1593b7527df41487c512d1;p=thirdparty%2Fgcc.git 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 --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 91ed43dc21a..d5103f461df 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