From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-172138-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E8D8E1382FE for <garchives@archives.gentoo.org>; Tue, 12 Jul 2016 08:50:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 50336E0B4F; Tue, 12 Jul 2016 08:50:08 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1CE42E0B2C for <gentoo-user@lists.gentoo.org>; Tue, 12 Jul 2016 08:50:06 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from <lnx-gentoo-user@m.gmane.org>) id 1bMtOG-0005je-80 for gentoo-user@lists.gentoo.org; Tue, 12 Jul 2016 10:50:04 +0200 Received: from pd953e552.dip0.t-ipconnect.de ([217.83.229.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <gentoo-user@lists.gentoo.org>; Tue, 12 Jul 2016 10:50:04 +0200 Received: from holger by pd953e552.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <gentoo-user@lists.gentoo.org>; Tue, 12 Jul 2016 10:50:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Holger =?iso-8859-1?q?Hoffst=E4tte?= <holger@applied-asynchrony.com> Subject: [gentoo-user] Re: Is "-fomit-frame-pointer" a gcc default? Date: Tue, 12 Jul 2016 08:25:46 +0000 (UTC) Message-ID: <pan$ef2fd$fcd3643e$fa6a98a9$b9d91d07@applied-asynchrony.com> References: <20160711202742.GA6195@waltdnes.org> <1468270318.3153.9.camel@gmail.com> <57843055.10803@googlemail.com> <20160712004758.GA7560@waltdnes.org> <1468286604.3153.15.camel@gmail.com> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pd953e552.dip0.t-ipconnect.de User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT b8fc14e git.gnome.org/git/pan2) X-Archives-Salt: c34b4def-4f16-4ded-bb8b-a998ec76eaa1 X-Archives-Hash: 105ab12e92f7e52a0f1b3bd846642c22 On Mon, 11 Jul 2016 19:23:24 -0600, "J." García wrote: > El lun, 11-07-2016 a las 20:47 -0400, waltdnes@waltdnes.org escribió: >> On Tue, Jul 12, 2016 at 01:48:37AM +0200, Volker Armin Hemmann wrote >> >> > so it is not turned on on x86. Not sure about amd64. IIRC it is >> > default >> > on amd64, but I am not sure and too lazy to google. Just like the >> > thread >> > starter. >> >> Actually, I did Google. So did another particpant in the Pale Moon >> forum. We got different answers, and various other people chimed in. >> That's why I posted here. BTW, "gcc -O2 -Q --help=optimizers" >> returns >> >> -fomit-frame-pointer [disabled] >> >> ...in both my real 64-bit Gentoo install and my 32-bit VM Gentoo. >> > I made a mistake, I didn't ran the 'gcc -Q .." command correctly, a > typo, so I didn't really checked just got the list of optimizers, but > checking again I also have it disabled by default: > > $ gcc -c -march=core2 -O2 -Q --help=optimizers |\ > grep fomit-frame-pointer > -fomit-frame-pointer [disabled] No, gcc is just lying. See this reddit comment thread for details: https://www.reddit.com/r/Cprog/comments/2iv09b/frame_pointer_omission_fpo_optimization_and/ Running the 'gcc -v' snippet shows that -fomit-frame-pointer is indeed enabled by default on amd64. -h