Atomic builtins always defined -- bug or feature?

David Daney ddaney@caviumnetworks.com
Mon Jun 8 15:31:00 GMT 2009


Andrew Haley wrote:
> Joseph Garvin wrote:
>> On Fri, Jun 5, 2009 at 1:57 PM, Andrew Haley<aph@redhat.com> wrote:
>>> i386 has lock incl, surely, so __sync_add_and_fetch isn't a problem.
>>> It's stuff like __sync_val_compare_and_swap you don't have.
>> I thought the lock instruction didn't exist until the pentium pro?
> 
> I have an actual paper 1989 vintage i386 manual, and lock is defined.
> 

IIRC, lock was present from the original 8086/8088.

David Daney.



More information about the Gcc-help mailing list