From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4000 invoked by alias); 13 Jul 2010 20:40:09 -0000 Received: (qmail 3991 invoked by uid 22791); 13 Jul 2010 20:40:08 -0000 X-SWARE-Spam-Status: No, hits=-1.9 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; Tue, 13 Jul 2010 20:40:03 +0000 Received: by wye20 with SMTP id 20so5359022wye.20 for ; Tue, 13 Jul 2010 13:40:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.79.18 with SMTP id h18mr5739375wee.81.1279053601234; Tue, 13 Jul 2010 13:40:01 -0700 (PDT) Received: by 10.216.179.76 with HTTP; Tue, 13 Jul 2010 13:40:01 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 Jul 2010 20:40:00 -0000 Message-ID: Subject: Re: Turn on -fomit-frame-pointer by default for 32bit x86? From: Richard Guenther To: "H.J. Lu" Cc: GCC Patches , Uros Bizjak Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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/msg01098.txt.bz2 On Tue, Jul 13, 2010 at 8:15 PM, H.J. Lu wrote: > Hi, > > I checked the default code for 32bit. We currently generate > > [hjl@gnu-6 tmp]$ cat x.c > void > foo () > { > } > [hjl@gnu-6 tmp]$ /usr/gcc-4.5/bin/gcc -m32 -S x.c -O3 > [hjl@gnu-6 tmp]$ cat x.s > =A0 =A0 =A0 =A0.file =A0 "x.c" > =A0 =A0 =A0 =A0.text > .globl foo > =A0 =A0 =A0 =A0.type =A0 foo, @function > foo: > =A0 =A0 =A0 =A0pushl =A0 %ebp > =A0 =A0 =A0 =A0movl =A0 =A0%esp, %ebp > =A0 =A0 =A0 =A0popl =A0 =A0%ebp > =A0 =A0 =A0 =A0ret > > Can we turn on -fomit-frame-pointer by default for 32bit? No, we don't have unwind information by default for 32bit. Richard. > > -- > H.J. >