From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1873 invoked by alias); 8 Nov 2011 01:36:10 -0000 Received: (qmail 1573 invoked by uid 22791); 8 Nov 2011 01:36:08 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Nov 2011 01:35:55 +0000 From: "solar-gcc at openwall dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug web/51019] New: unclear documentation on -fomit-frame-pointer default for -Os and different platforms Date: Tue, 08 Nov 2011 01:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: web X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: solar-gcc at openwall dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg00717.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51019 Bug #: 51019 Summary: unclear documentation on -fomit-frame-pointer default for -Os and different platforms Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: web AssignedTo: unassigned@gcc.gnu.org ReportedBy: solar-gcc@openwall.com The texinfo documentation for GCC 4.6.2 says: Starting with GCC version 4.6, the default setting (when not optimizing for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has been changed to `-fomit-frame-pointer'. The default can be reverted to `-fno-omit-frame-pointer' by configuring GCC with the `--enable-frame-pointer' configure option. Enabled at levels `-O', `-O2', `-O3', `-Os'. The "when not optimizing for size" comment feels contradictory to having "-Os" listed on the "Enabled at levels" line. Also, it is not clear what the default is on other than "32-bit Linux x86 and 32-bit Darwin x86". In practice, I observe the following behavior with GCC 4.6.2: on Linux/x86_64, -fomit-frame-pointer is the default at both -O2 and -Os (I did not test others); on Linux/i386, it is the default at -O2, but not at -Os. This needs to be documented more clearly.