From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6898 invoked by alias); 14 Jul 2010 12:00:12 -0000 Received: (qmail 6880 invoked by uid 22791); 14 Jul 2010 12:00:10 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from mail-wy0-f175.google.com (HELO mail-wy0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Jul 2010 12:00:06 +0000 Received: by wye20 with SMTP id 20so5861913wye.20 for ; Wed, 14 Jul 2010 05:00:03 -0700 (PDT) Received: by 10.216.185.131 with SMTP id u3mr11327327wem.28.1279108803493; Wed, 14 Jul 2010 05:00:03 -0700 (PDT) Received: from [192.168.2.99] (cpc2-cmbg8-0-0-cust61.cmbg.cable.ntl.com [82.6.108.62]) by mx.google.com with ESMTPS id o67sm3069704wej.44.2010.07.14.05.00.01 (version=SSLv3 cipher=RC4-MD5); Wed, 14 Jul 2010 05:00:02 -0700 (PDT) Message-ID: <4C3DABAE.5000503@gmail.com> Date: Wed, 14 Jul 2010 12:00:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: "H.J. Lu" CC: Andrew Pinski , Richard Guenther , GCC Patches , Uros Bizjak Subject: Re: Turn on -fomit-frame-pointer by default for 32bit x86? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg01147.txt.bz2 On 13/07/2010 22:44, H.J. Lu wrote: > On Tue, Jul 13, 2010 at 2:02 PM, Andrew Pinski wrote: >> On Tue, Jul 13, 2010 at 2:01 PM, Andrew Pinski wrote: >>> On Tue, Jul 13, 2010 at 1:59 PM, H.J. Lu wrote: >>>> What will stop working when -fomit-frame-pointer is on? >>> backtraces when debugging information is not turned on. >> See http://gcc.gnu.org/ml/gcc-patches/2004-08/msg01033.html and many >> more. This is not the first time this has been discussed. > > Most of 32bit x86 assembly codes in glibc have .eh_frame section. > If backtrace is absolutely needed, they can add -fasynchronous-unwind-tables > or -fno-omit-frame-pointer. > Alas not all the x86 world is a glibc. So if you want to do this it has to be target-dependent I think. cheers, DaveK