-----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, [email protected] 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-----

