This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Re: Merging calls to `abort'


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


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