This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] enable omit-frame-pointer on darwin with dwarf2
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- Cc: gcc-patches at gcc dot gnu dot org, mikestump at comcast dot net, iains at gcc dot gnu dot org
- Date: Fri, 13 Aug 2010 08:59:50 -0700
- Subject: Re: [PATCH] enable omit-frame-pointer on darwin with dwarf2
- References: <20100813095644.GA31036@bromo.med.uc.edu>
On Fri, Aug 13, 2010 at 2:56 AM, Jack Howarth <howarth@bromo.med.uc.edu> wrote:
> The attached patch enables -fomit-frame-pointer for those darwin
> releases which support dwarf2. Bootstrapped and regression tested
> on x86_64-apple-darwin10. Okay for gcc trunk?
> ? ? ? ? ? ? ? ? Jack
>
> 2010-08-12 ?Jack Howarth <howarth@bromo.med.uc.edu>
>
> ? ? ? ?* gcc/configure.ac: Enable -fomit-frame-pointer on darwin
> ? ? ? ?which support dwarf2.
> ? ? ? ?* config/i386/i386.c (override_options): Same.
>
>
> Index: gcc/configure.ac
> ===================================================================
> --- gcc/configure.ac ? ?(revision 163214)
> +++ gcc/configure.ac ? ?(working copy)
> @@ -1584,7 +1584,7 @@
> ?[ ?--enable-frame-pointer ?enable -fno-omit-frame-pointer by default for 32bit x86], [],
> ?[
> ?case $target_os in
> -linux*)
> +linux* | darwin[[8912]]*)
This will match darwin8*, darwin9*, darwin1*, darwin2*. Is this what you want?
> ? # Enable -fomit-frame-pointer by default for Linux.
You should mention Darwin here.
> ? enable_frame_pointer=no
> ? ;;
H.J.