Richard Henderson wrote: >My thinking would be along the lines of > > >#if !ARCH_ALWAYS_HAS_SYNC_BUILTINS > > [snip]
>#endif > > Well, there is a minor catch, which is, if we don't want to break the ABI, we have to keep on implementing and exporting from the *.so __exchange_and_add and __atomic_add also for arches that actually always support sync builtins (even if new code will have the builtins expanded inline) Paolo.