This is the mail archive of the
mailing list for the GCC project.
RE: Leaf functions and noreturn calls
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Richard Henderson'" <rth at redhat dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Mon, 20 Mar 2006 16:19:52 -0000
- Subject: RE: Leaf functions and noreturn calls
On 20 March 2006 15:31, Richard Henderson wrote:
> On Mon, Mar 20, 2006 at 12:57:14PM -0000, Dave Korn wrote:
>> Taking a look at leaf_function_p, I see that it specifically discounts
>> sibcalls; why not noreturncalls as well?
> Because generally losing unwind information from noreturn calls
> is a lose when it comes to debugging.
Ah, good point. You want to know where abort() was called from indeed!
However, I might still want to make it an option for cases where debugging
isn't going to be important; it seems to me that the generated code should
still be valid.
Can't think of a witty .sigline today....