This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6522] abort should not be marked noreturn
- From: "joseph at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 17 Jun 2008 13:37:27 -0000
- Subject: [Bug libc/6522] abort should not be marked noreturn
- References: <20080515091307.6522.dak@gnu.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From joseph at codesourcery dot com 2008-06-17 13:37 -------
Subject: Re: abort should not be marked noreturn
On Tue, 17 Jun 2008, dak at gnu dot org wrote:
> The optimal solution would, as I stated at the bottom of comment #4, introduce
> some attribute that could effectively enable -fno-crossjumping for abort calls
> only. In that manner, the "noreturn" optimizations would have a chance to be
> tracked by debugging information since the return address would uniquely
> identify the context of the stack frame.
>
> This would require work in the compiler and might be the most elegant solution
> in the long run. Leaving off "noreturn" in the meantime would provide an
> expedience that gets rid of the most productivity-wasting artifacts.
The compiler provides a noreturn attribute for abort automatically.
Whether the header provides it doesn't matter unless you use
-fno-builtin-abort.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6522
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.