This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [x86] Do not omit the frame pointer at -O0
- From: Jeff Law <law at redhat dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 22 Jun 2018 14:36:41 -0600
- Subject: Re: [x86] Do not omit the frame pointer at -O0
- References: <6483947.mOsC1xWP0l@polaris>
On 06/20/2018 07:56 AM, Eric Botcazou wrote:
> Hi,
>
> the fix for PR target/81736 unconditionally overrules -fno-omit-frame-pointer,
> including at -O0 where it is implicit. That seems brutal and unnecessary so
> the attached patch reverts it at -O0 and thus fixes 135 failures in the GDB
> testsuite:
>
> === gdb Summary ===
>
> -# of expected passes 55397
> -# of unexpected failures 359
> +# of expected passes 55534
> +# of unexpected failures 224
> # of unexpected successes 3
> # of expected failures 64
> # of unknown successes 3
>
> Tested on x86-64/Linux, OK for mainline and 8 branch?
>
>
> 2018-06-20 Eric Botcazou <ebotcazou@adacore.com>
>
> * config/i386/i386.c (ix86_finalize_stack_frame_flags): Do not overrule
> -fno-omit-frame-pointer when not optimizing.
>
OK
jeff