This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
help with __sync for "long long" types
- From: Preeti Sharma <pritis at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 7 Jul 2010 08:26:53 -0700
- Subject: help with __sync for "long long" types
I am trying to use __sync_fetch_and_add with type as "long long" .
This gives me the link error :
undefined reference to `__sync_fetch_and_add_8'
This compiles for a "int " type though. I am using the the gcc option
-march=i686
Is it possible to do a 64 bit integer operation atomically with the
__sync .. builtin functions ?
Thanks
Preeti.