From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 88B723858D39; Fri, 26 Nov 2021 11:48:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88B723858D39 From: "nils.smeds at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/103438] Updated documentation for gcc Optimization command line options (sec 3.11) Date: Fri, 26 Nov 2021 11:48:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.2.1 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: nils.smeds at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2021 11:48:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103438 --- Comment #4 from Nils Smeds --- (In reply to Andrew Pinski from comment #1) > -fprefetch-loop-arrays is not enabled by default on all targets. $ gcc --version gcc (GCC) 11.2.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ for lvl in O0 O1 O2 O3 Os; do gcc -Q --help=3Doptimizer -$lvl hello.c > level-$lvl-default-opt.txt 2>&1 ; done $ grep fprefetch-loop-arrays level-O*-opt.txt level-O0-default-opt.txt: -fprefetch-loop-arrays [enabled] level-O1-default-opt.txt: -fprefetch-loop-arrays [enabled] level-O2-default-opt.txt: -fprefetch-loop-arrays [enabled] level-O3-default-opt.txt: -fprefetch-loop-arrays [enabled] level-Os-default-opt.txt: -fprefetch-loop-arrays [enabled] $ grep aggressive-loop level-O*-opt.txt level-O0-default-opt.txt: -faggressive-loop-optimizations [enabled] level-O1-default-opt.txt: -faggressive-loop-optimizations [enabled] level-O2-default-opt.txt: -faggressive-loop-optimizations [enabled] level-O3-default-opt.txt: -faggressive-loop-optimizations [enabled] level-Os-default-opt.txt: -faggressive-loop-optimizations [enabled] $ grep inline-functions *txt level-O0-default-opt.txt: -finline-functions [disabled] level-O0-default-opt.txt: -finline-functions-called-once [disabled] level-O1-default-opt.txt: -finline-functions [disabled] level-O1-default-opt.txt: -finline-functions-called-once [enabled] level-O2-default-opt.txt: -finline-functions [enabled] level-O2-default-opt.txt: -finline-functions-called-once [enabled] level-O3-default-opt.txt: -finline-functions [enabled] level-O3-default-opt.txt: -finline-functions-called-once [enabled] level-Os-default-opt.txt: -finline-functions [enabled] level-Os-default-opt.txt: -finline-functions-called-once [enabled]=