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]

Re: New attribute "infrequent"?


Jan Hubicka <jh@suse.cz> writes:

> Optimizing "noreturn" function for size instead of speed should be also good
> idea, but just tiny fraction of code is "noreturn", while "infrequent" is in
> fact majority of code.

It's not always the case that noreturn functions are not
time-critical.  Functions which end longjmp() can very well be used
very frequently.  There is code out there which emulates exception
handling this way.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


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