This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/6522] abort should not be marked noreturn


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]