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