This is the mail archive of the archer@sourceware.org mailing list for the Archer 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: [patch by Michael Matz] Re: archer gdb and gcc 4.1 globalnamespace DIE


Hi,

On Thu, 14 May 2009, Sami Wagiaalla wrote:

> Nice.. I am a fan of solution 2 as well :)
> The patch works for me and introduces no regressions, at lease on x86_64 and
> gcc43.
> 
> One question though. Is there a reason not to use strcmp(prefix,"::")==0 to
> compare the string ?

Pure paranoia that the compiler might not optimize this to the separate 
instructions (and in that case I would feel the call overhead in this 
presumably not-too-cold code path to be too large).  I have that paranoia 
even though I'm a compiler engineer.  Or maybe because of it :)  It's 
probably better to use strcmp anyway, right ;)


Ciao,
Michael.


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