From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 3EA3E1382FE for ; Tue, 12 Jul 2016 20:54:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 609D021C192; Tue, 12 Jul 2016 20:53:53 +0000 (UTC) Received: from mail-qk0-f195.google.com (mail-qk0-f195.google.com [209.85.220.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B80E21C18C for ; Tue, 12 Jul 2016 20:53:52 +0000 (UTC) Received: by mail-qk0-f195.google.com with SMTP id n132so1707670qka.0 for ; Tue, 12 Jul 2016 13:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=fg3/oesZvoShQ1+IGHCsppHTj5Js837Bp34IQmB8dT8=; b=Vz7pY9HoG1kB2dNXfmFZDhTp4T9B2w0Qj+DCsqDIqn7BaEoO1QqRaAawCiG7f9cPIH d083n7Lnfvb5V44czrojbBYMjv005DJKCAoQZwqR5giS+9HHNKDt0RA8ipqpDzf2t1dE +CbLJFuK0dk633Bxk1JItwjOiO+HAAUsCIVdfOEVN2Ua++UBpHoopveSnM+CBDFERWRE eCobJgUy0n37cFJoy1ffwVv7CBMMo8m//WFdpVCBTAoxxokZwsjF6SRDo3s1ltXFDNY4 v8Df+0307/IXJ2UiuZkVH7ukNV8wT9d5b6TIQ9bY675qtzZVMwvIVsVfJg9qtawuiB0T dYgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=fg3/oesZvoShQ1+IGHCsppHTj5Js837Bp34IQmB8dT8=; b=NiqQT9ix0pUrCJFlAth+F5Y0Kq9k8NmTI0juiX8ykuGMGA2LwpRGemDzofFAvu1MTO D9KOBpa1mrJAb5vx1m2Jy/YZYu6Ldx61kKS6ubZ32Ujj/8gBME0iaGAGvAeR85zpcaQg rRrtRPWZQ7idXNOVKfiRvp9irzYCFaaDHAkC9rmgPXfRMv8U/Zn8bLQpmvU1abecGx5a 726KqVRaB8q2QuaOqY3CBadomQeCDcIGw1N89gEDA46kRD9WiDDHUnXBD99qb1VWJorp NshK0/KTm4H2Ume40/YNcB0r/2Uj5xv+kbgw0wAPEuGybN9mE4KO4ge4c3ajDRDKMT4a /E8A== X-Gm-Message-State: ALyK8tK6QbErBx7LeUwN/SaaE8hicD84nt6AbBM0AhX5+252S2aEZAF8vMQk9IHkT2lcZQ== X-Received: by 10.55.12.1 with SMTP id 1mr5626020qkm.136.1468356831055; Tue, 12 Jul 2016 13:53:51 -0700 (PDT) Received: from [10.10.0.10] (97-102-36-170.res.bhn.net. [97.102.36.170]) by smtp.gmail.com with ESMTPSA id r6sm1893640qtd.20.2016.07.12.13.53.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2016 13:53:50 -0700 (PDT) Subject: Re: [gentoo-user] Is "-fomit-frame-pointer" a gcc default? To: gentoo-user@lists.gentoo.org References: <20160711202742.GA6195@waltdnes.org> <1468270318.3153.9.camel@gmail.com> From: Fernando Rodriguez Message-ID: <9ff4c413-1ad5-b983-c27b-c21660d08791@gmail.com> Date: Tue, 12 Jul 2016 16:54:41 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <1468270318.3153.9.camel@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 9a85d14f-b5d6-4811-a36c-28b66dc4b86f X-Archives-Hash: 21592bd15f218a1b7bce62b8b3e80af6 -----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-----