This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: builtin_return_addr vs frame_pointer_needed vs -O3
- To: rth at redhat dot com
- Subject: Re: builtin_return_addr vs frame_pointer_needed vs -O3
- From: DJ Delorie <dj at redhat dot com>
- Date: Wed, 31 Jan 2001 21:20:57 -0500
- CC: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- References: <200101312226.RAA29943@greed.delorie.com> <20010131170452.A13854@redhat.com>
> + /* In override_options, TARGET_OMIT_LEAF_FRAME_POINTER turns off
> + the frame pointer by default. Turn it back on now if we've not
> + got a leaf function. */
> + if (TARGET_OMIT_LEAF_FRAME_POINTER && ! leaf_function_p ())
> + return 1;
Could you explain this one? I don't see how the non-leaf functions
require a frame pointer only when you want leaf functions to not have
one, but they don't require one otherwise.