This is the mail archive of the gcc-bugs@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: libstdc++/8230: Buggy allocator behaviour


On Thu, Nov 14, 2002 at 11:27:17PM +0100, Gabriel Dos Reis wrote:
> Maybe RTH could provide us with some datapoint here?

"It depends".

> | Second, if the answer to question 1 is "a lot": is there some sensible
> | way to use this in the compiler itself?  I suppose it'd have to involve
> | some ghastly macro hackery because of the bootstrap problem, but
> | it we're talking big performance wins, it might be worth it.
> 
> If the answer to the first question is "a lot", then I agree with you
> that it makes perfect sense to use it in the compiler itself.  I
> could imagine something along the lines
> 
> #if !defined(__GNUC__) || __GNUC__ < 3  /* correct the version number */
> #  define __builtin_expect(EXP, PROB) EXP
> #endif
> 
> in system.h or wherever appropriate.

I don't think it's worth it, except _possibly_ in the 
ENABLE_CHECKING macros.


r~


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