From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BFCAE385C40F; Fri, 16 Jul 2021 01:28:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BFCAE385C40F From: "ashimida at linux dot alibaba.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/101459] Mismatch in description of option "-falign-functions" between source code and documentation Date: Fri, 16 Jul 2021 01:28:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: ashimida at linux dot alibaba.com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WORKSFORME 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, 16 Jul 2021 01:28:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101459 --- Comment #5 from ashimida --- (In reply to Andrew Pinski from comment #4) > (In reply to ashimida from comment #3) > > (In reply to Richard Biener from comment #2) > > > The flag, -falign-functions is only enabled at -O2+ (but not -Os), bu= t the > > > actual alignment is recorded in the 'align_functions' data which is o= nly > > > populated when -falign-functions is specified so I think it works as > > > documented. > >=20 > > so I think this flag is also worked at -O0 >=20 > I think you are misunderstanding the documentation. The documentation is > saying it is enabled by default at -O2 and above (but not -Os); not that = it > will only work at -O2 and above. okey, now I understand, I have misunderstood this option, thank you very mu= ch!=