[PATCH] Mirror i386 change on sparc: 'Avoid "anonymous" code in pthread_spin_lock'

Andreas Schwab schwab@linux-m68k.org
Thu May 3 15:34:00 GMT 2012


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.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Libc-alpha mailing list