This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [arm] Omit register save in noreturn functions
- From: Richard Henderson <rth at redhat dot com>
- To: Paul Brook <paul at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 20 Jan 2006 13:16:19 -0800
- Subject: Re: [arm] Omit register save in noreturn functions
- References: <200601200001.42573.paul@codesourcery.com>
On Fri, Jan 20, 2006 at 12:01:42AM +0000, Paul Brook wrote:
> arm.c:arm_compute_func_type contains logic to avoid saving registers in the
> function prologue if the function never returns, and we don't need to unwind
> through it. The patch below makes this condition hold when exceptions and
> unwinding tables are disabled. This is the case for most C code.
Well, except for the fact that it makes it much harder to figure out
what went wrong with a breakpoint on "abort". This is why, for
instance, we disabled tail calls to noreturn functions.
r~