This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] Mirror i386 change on sparc: 'Avoid "anonymous" codein pthread_spin_lock'


From: Andreas Schwab <schwab@linux-m68k.org>
Date: Thu, 03 May 2012 17:34:11 +0200

> Chris Metcalf <cmetcalf@tilera.com> writes:
> 
>> Whether this is actually doable or not without an explicit branch-around
>> depends on the architecture.  I'm not familiar enough with sparc calling
>> conventions or sparc gcc to be confident that you could just guarantee that
>> the compiler won't create a frame, and thus put an inline "ret" directly in
>> the "likely" path.
> 
> If you play dirty games with the compiler you are guaranteed to lose.

%100 agreed, such tricks are beyond stupid even if they work today.


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