* [gentoo-user] Is "-fomit-frame-pointer" a gcc default? @ 2016-07-11 20:27 waltdnes 2016-07-11 20:34 ` Michael Cook ` (2 more replies) 0 siblings, 3 replies; 14+ messages in thread From: waltdnes @ 2016-07-11 20:27 UTC (permalink / raw To: Gentoo Users List I put it into CFLAGS/CCFLAGS years ago, and left it there. During a discussion on the Pale Moon forum about build options, the opinion seems to be that "-fomit-frame-pointer" is now the default. Is that correct? I'd like to simplify my CFLAGS/CCFLAGS both in Gentoo and the Pale Moon build process. -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Is "-fomit-frame-pointer" a gcc default? 2016-07-11 20:27 [gentoo-user] Is "-fomit-frame-pointer" a gcc default? waltdnes @ 2016-07-11 20:34 ` Michael Cook 2016-07-11 20:51 ` J. García 2016-07-12 10:07 ` Andrew Savchenko 2 siblings, 0 replies; 14+ messages in thread From: Michael Cook @ 2016-07-11 20:34 UTC (permalink / raw To: gentoo-user On 07/11/2016 04:27 PM, waltdnes@waltdnes.org wrote: > I put it into CFLAGS/CCFLAGS years ago, and left it there. During a > discussion on the Pale Moon forum about build options, the opinion seems > to be that "-fomit-frame-pointer" is now the default. Is that correct? > I'd like to simplify my CFLAGS/CCFLAGS both in Gentoo and the Pale Moon > build process. > It depends on the CPU. Most modern (x86 at least) stuff most likely are. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Is "-fomit-frame-pointer" a gcc default? 2016-07-11 20:27 [gentoo-user] Is "-fomit-frame-pointer" a gcc default? waltdnes 2016-07-11 20:34 ` Michael Cook @ 2016-07-11 20:51 ` J. García 2016-07-11 23:48 ` Volker Armin Hemmann 2016-07-12 20:54 ` [gentoo-user] " Fernando Rodriguez 2016-07-12 10:07 ` Andrew Savchenko 2 siblings, 2 replies; 14+ messages in thread From: J. García @ 2016-07-11 20:51 UTC (permalink / raw To: gentoo-user El lun, 11-07-2016 a las 16:27 -0400, waltdnes@waltdnes.org escribió: > I put it into CFLAGS/CCFLAGS years ago, and left it there. During > a > discussion on the Pale Moon forum about build options, the opinion > seems > to be that "-fomit-frame-pointer" is now the default. Is that > correct? > I'd like to simplify my CFLAGS/CCFLAGS both in Gentoo and the Pale > Moon > build process. > I think it is, at least here it is a default, you can find out by running: gcc -c -Q --help=optimizers It gets activated with -O, and -O2 is the default in Gentoo, so it should be. From the gcc manual: "-O also turns on -fomit-frame-pointer on machines where doing so does not interfere with debugging." ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Is "-fomit-frame-pointer" a gcc default? 2016-07-11 20:51 ` J. García @ 2016-07-11 23:48 ` Volker Armin Hemmann 2016-07-12 0:47 ` waltdnes 2016-07-12 20:54 ` [gentoo-user] " Fernando Rodriguez 1 sibling, 1 reply; 14+ messages in thread From: Volker Armin Hemmann @ 2016-07-11 23:48 UTC (permalink / raw To: gentoo-user Am 11.07.2016 um 22:51 schrieb J. García: > El lun, 11-07-2016 a las 16:27 -0400, waltdnes@waltdnes.org escribió: >> I put it into CFLAGS/CCFLAGS years ago, and left it there. During >> a >> discussion on the Pale Moon forum about build options, the opinion >> seems >> to be that "-fomit-frame-pointer" is now the default. Is that >> correct? >> I'd like to simplify my CFLAGS/CCFLAGS both in Gentoo and the Pale >> Moon >> build process. >> > I think it is, at least here it is a default, you can find out by > running: > gcc -c -Q --help=optimizers > > It gets activated with -O, and -O2 is the default in Gentoo, so it > should be. > >From the gcc manual: > "-O also turns on -fomit-frame-pointer on machines where doing so does > not interfere with debugging." > > 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. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Is "-fomit-frame-pointer" a gcc default? 2016-07-11 23:48 ` Volker Armin Hemmann @ 2016-07-12 0:47 ` waltdnes 2016-07-12 1:23 ` J. García 0 siblings, 1 reply; 14+ messages in thread From: waltdnes @ 2016-07-12 0:47 UTC (permalink / raw To: gentoo-user 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. -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Is "-fomit-frame-pointer" a gcc default? 2016-07-12 0:47 ` waltdnes @ 2016-07-12 1:23 ` J. García 2016-07-12 8:25 ` [gentoo-user] " Holger Hoffstätte 0 siblings, 1 reply; 14+ messages in thread From: J. García @ 2016-07-12 1:23 UTC (permalink / raw To: gentoo-user 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] ^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: Is "-fomit-frame-pointer" a gcc default? 2016-07-12 1:23 ` J. García @ 2016-07-12 8:25 ` Holger Hoffstätte 0 siblings, 0 replies; 14+ messages in thread From: Holger Hoffstätte @ 2016-07-12 8:25 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Is "-fomit-frame-pointer" a gcc default? 2016-07-11 20:51 ` J. García 2016-07-11 23:48 ` Volker Armin Hemmann @ 2016-07-12 20:54 ` Fernando Rodriguez 1 sibling, 0 replies; 14+ messages in thread From: Fernando Rodriguez @ 2016-07-12 20:54 UTC (permalink / raw To: gentoo-user -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 07/11/2016 04:51 PM, J. García wrote: > El lun, 11-07-2016 a las 16:27 -0400, waltdnes@waltdnes.org escribió: >> I put it into CFLAGS/CCFLAGS years ago, and left it there. During >> a >> discussion on the Pale Moon forum about build options, the opinion >> seems >> to be that "-fomit-frame-pointer" is now the default. Is that >> correct? >> I'd like to simplify my CFLAGS/CCFLAGS both in Gentoo and the Pale >> Moon >> build process. >> > I think it is, at least here it is a default, you can find out by > running: > gcc -c -Q --help=optimizers > > It gets activated with -O, and -O2 is the default in Gentoo, so it > should be. No. At least for me it is -O0. I tested by compiling a small program with different options and diffing the binaries. You can get a definitive answer for any gcc option defaults like that. As long as your test program is complex enough to use those features. You can also diff the output of the -f and -fno flags and if they don't differ then either the test program is not complex enough or the feature has not effect on your arch or platform. > From the gcc manual: > "-O also turns on -fomit-frame-pointer on machines where doing so does > not interfere with debugging." > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXhVkRAAoJEPbOFX/5Ulwcpi4P/2btg0u+HquLcpHQnw7Ja/KT 8Y0rOPeU38aL0vbI3Qfc/9cLjlZbdsK7G53GYhdOVMhbO5h8OxZiKQraIErTJmhC BFR4tZosCft636jsEDD1H5XlmjpeBmvt+YnwnUSXOJe6mjqzpaV1Cyj2ikjQIm3p etoZQ2odXOCHS4zYA9td1HA6/W3C/frCYXr18w3Nx5qO8BbCzFZx6vxC8ts9krym xkg3EZhShPnyOIfSkZNq3yotnRoiN1JFZjr1hzfEaMnNlMfn5T6a1hHHUs3/khsP aQMlLZAbnxpjNQTslLvEsLPhCwqPylJXa28iHD4SvbGrz9PvCWkOsbIB1XN6J0f2 ZYnHBZ0ZGF8CMdLsIF6SEbseIeq41Wxy3iKH5LpP6TWMRL3RGFAHG8VZAJoxH/fI l2WsVLotAHfdg6Zm2cx/ZxQQyjtQl1lohfhY+NtWHhLymrWpZl5aiiTsty7DBjKa M3y9kX0q9CcixK868jRgB11wtWGXp0jMzBs052Y0zpB6IPWx/h9Xc5eTqVjKd18Z teioIIAGUUkIobNuC6Yo9RVSHS7vjVBYSLPD1uiOnxkTFL9zzWvc+gtYRY2NCzhj ZRg1OPFGgXQW9SoKlpMw6G0nrtx/zO7aQzRWD15JzafdCa9PckegAidpoEJg11cg VewJz+zagKPgGAl1euw1 =1mBf -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Is "-fomit-frame-pointer" a gcc default? 2016-07-11 20:27 [gentoo-user] Is "-fomit-frame-pointer" a gcc default? waltdnes 2016-07-11 20:34 ` Michael Cook 2016-07-11 20:51 ` J. García @ 2016-07-12 10:07 ` Andrew Savchenko 2016-07-12 10:52 ` konsolebox 2 siblings, 1 reply; 14+ messages in thread From: Andrew Savchenko @ 2016-07-12 10:07 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1519 bytes --] Hi, On Mon, 11 Jul 2016 16:27:42 -0400 waltdnes@waltdnes.org wrote: > I put it into CFLAGS/CCFLAGS years ago, and left it there. During a > discussion on the Pale Moon forum about build options, the opinion seems > to be that "-fomit-frame-pointer" is now the default. Is that o? > I'd like to simplify my CFLAGS/CCFLAGS both in Gentoo and the Pale Moon > build process. gcc-5.3.0 manual says: The default setting (when not optimizing for size) for 32-bit GNU/Linux x86 and 32-bit Darwin x86 targets is -fomit-frame-pointer. You can configure GCC with the --enable-frame-pointer configure option to change the default. So it depends not only on the arch, but also on how gcc was compiled. Strange, but here Gentoo x86 I have -fomit-frame-pointer disabled by default, so either gcc manpage is wrong or Gentoo disables frame pointer during gcc configuration (I can't confirm the latter after digging into toolchain eclass). This flag is yummy on amd64 and very important on x86, since x86 has only 8 "general purpose" CPU registers, 4 of which have special use, so only 4 are available for general computations and 1 of them is wasted on frame-pointer, not nice. The cost of extra register is that profiling is no longer possible and debugging may be mangled a bit. Looks like -fpic disables -fomit-frame-pointer at least for some pieces of the code: hand-written 4-registers assembly makes -fpic fail in some cases on x86 (e.g. ffmpeg). Best regards, Andrew Savchenko [-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Is "-fomit-frame-pointer" a gcc default? 2016-07-12 10:07 ` Andrew Savchenko @ 2016-07-12 10:52 ` konsolebox 2016-07-12 17:14 ` R0b0t1 0 siblings, 1 reply; 14+ messages in thread From: konsolebox @ 2016-07-12 10:52 UTC (permalink / raw To: gentoo-user On Tue, Jul 12, 2016 at 6:07 PM, Andrew Savchenko <bircoph@gentoo.org> wrote: > Hi, > > On Mon, 11 Jul 2016 16:27:42 -0400 waltdnes@waltdnes.org wrote: >> I put it into CFLAGS/CCFLAGS years ago, and left it there. During a >> discussion on the Pale Moon forum about build options, the opinion seems >> to be that "-fomit-frame-pointer" is now the default. Is that o? >> I'd like to simplify my CFLAGS/CCFLAGS both in Gentoo and the Pale Moon >> build process. > > gcc-5.3.0 manual says: > The default setting (when not optimizing for size) for 32-bit > GNU/Linux x86 and 32-bit Darwin x86 targets is > -fomit-frame-pointer. You can configure GCC with the > --enable-frame-pointer configure option to change the default. And this was first mentioned in 4.6.0's changelog, but I don't see anything about x86_64. -- konsolebox ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Is "-fomit-frame-pointer" a gcc default? 2016-07-12 10:52 ` konsolebox @ 2016-07-12 17:14 ` R0b0t1 2016-07-12 22:09 ` [gentoo-user] " »Q« 0 siblings, 1 reply; 14+ messages in thread From: R0b0t1 @ 2016-07-12 17:14 UTC (permalink / raw To: gentoo-user Pale Moon is routinely behind Firefox on security fixes (actual fixes, not wanking-in-a-corner fixes). ^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: Is "-fomit-frame-pointer" a gcc default? 2016-07-12 17:14 ` R0b0t1 @ 2016-07-12 22:09 ` »Q« 2016-07-13 20:53 ` waltdnes 0 siblings, 1 reply; 14+ messages in thread From: »Q« @ 2016-07-12 22:09 UTC (permalink / raw To: gentoo-user On Tue, 12 Jul 2016 12:14:57 -0500 R0b0t1 <r030t1@gmail.com> wrote: > Pale Moon is routinely behind Firefox on security fixes (actual fixes, > not wanking-in-a-corner fixes). Is anyone other than the Pale Moon team itself trying to track its vulnerabilities? I could only find one CVE for it, from 2013. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: Is "-fomit-frame-pointer" a gcc default? 2016-07-12 22:09 ` [gentoo-user] " »Q« @ 2016-07-13 20:53 ` waltdnes 2016-07-13 22:21 ` »Q« 0 siblings, 1 reply; 14+ messages in thread From: waltdnes @ 2016-07-13 20:53 UTC (permalink / raw To: gentoo-user On Tue, Jul 12, 2016 at 05:09:28PM -0500, »Q« wrote > On Tue, 12 Jul 2016 12:14:57 -0500 > R0b0t1 <r030t1@gmail.com> wrote: > > > Pale Moon is routinely behind Firefox on security fixes (actual fixes, > > not wanking-in-a-corner fixes). > > Is anyone other than the Pale Moon team itself trying to track its > vulnerabilities? I could only find one CVE for it, from 2013. See http://www.palemoon.org/releasenotes.shtml with several mentions of CVEs and other security fixes. Given the amount of Firefox code still present "under the hood", many Firefox security fixes will also apply to Pale Moon. -- Walter Dnes <waltdnes@waltdnes.org> I don't run "desktop environments"; I run useful applications ^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: Is "-fomit-frame-pointer" a gcc default? 2016-07-13 20:53 ` waltdnes @ 2016-07-13 22:21 ` »Q« 0 siblings, 0 replies; 14+ messages in thread From: »Q« @ 2016-07-13 22:21 UTC (permalink / raw To: gentoo-user On Wed, 13 Jul 2016 16:53:40 -0400 waltdnes@waltdnes.org wrote: > On Tue, Jul 12, 2016 at 05:09:28PM -0500, »Q« wrote > > On Tue, 12 Jul 2016 12:14:57 -0500 > > R0b0t1 <r030t1@gmail.com> wrote: > > > > > Pale Moon is routinely behind Firefox on security fixes (actual > > > fixes, not wanking-in-a-corner fixes). > > > > Is anyone other than the Pale Moon team itself trying to track its > > vulnerabilities? I could only find one CVE for it, from 2013. > > See http://www.palemoon.org/releasenotes.shtml with several mentions > of CVEs and other security fixes. Given the amount of Firefox code > still present "under the hood", many Firefox security fixes will also > apply to Pale Moon. Checking just a few, the Pale Moon team takes anywhere from a few weeks to a few months to fix security vulnerabilities which have been published and fixed by Mozilla. And other Firefox CVEs aren't listed by Pale Moon, so it's tough to tell whether or not Pale Moon is/was affected. Maybe their fork of Gecko has diverged too much to easily port Mozilla's fixes, I dunno. But not to worry, they have a FAQ. Is Pale Moon safe to use? Absolutely! Pale Moon is based on the Mozilla release source code that has a large community of developers and security-aware people, next to having seen over a decade of development by now. [...] OTOH, when it suits him, Moonchild stresses how very different his codebase is now from Mozilla's. AFAICS, no one but the Pale Moon team is tracking Pale Moon vulnerabilities. I dunno what to make of their claims that it's safe to use. ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2016-07-13 22:22 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-07-11 20:27 [gentoo-user] Is "-fomit-frame-pointer" a gcc default? waltdnes 2016-07-11 20:34 ` Michael Cook 2016-07-11 20:51 ` J. García 2016-07-11 23:48 ` Volker Armin Hemmann 2016-07-12 0:47 ` waltdnes 2016-07-12 1:23 ` J. García 2016-07-12 8:25 ` [gentoo-user] " Holger Hoffstätte 2016-07-12 20:54 ` [gentoo-user] " Fernando Rodriguez 2016-07-12 10:07 ` Andrew Savchenko 2016-07-12 10:52 ` konsolebox 2016-07-12 17:14 ` R0b0t1 2016-07-12 22:09 ` [gentoo-user] " »Q« 2016-07-13 20:53 ` waltdnes 2016-07-13 22:21 ` »Q«
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox