Merging calls to `abort'

Mark Mitchell mark@codesourcery.com
Tue Mar 15 01:18:00 GMT 2005


Joe Buck wrote:

> But it seems to me that the practice of using abort() as it is now used
> in many GNU programs is a holdover from 20 years ago when the engineering
> tradeoffs were different.  We can afford to tell the user more.

In addition, crossjumping calls to abort does more than just save space; 
it also saves time, because space *is* time on modern processors, where 
every bit of icache counts.

I don't see any reason for GCC to treat "abort" specially.  It should at 
least treat all "noreturn" functions equivalently.  But, beyond that, 
I'm a user who would rather than crossjumping be run on calls to 
"abort".  I use "abort" only when I've already issued a useful 
diagnostic, and want to dump core.  Otherwise, I use "assert", or an 
exception.  So, I would not support this change.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304



More information about the Gcc mailing list