volatile qualifier hurts single-threaded optimized case

Paolo Carlini pcarlini@suse.de
Wed Aug 30 10:27:00 GMT 2006


Benjamin Kosnik wrote:

>>#ifdef __arch64__
>>  typedef long _Atomic_word;
>>#else
>>  typedef int _Atomic_word;
>>#endif
>>    
>>
>
>I'm pretty sure: I scoped out the baseline files for what is exported. 
>
>However, if there is an issue, I'll fix it up.
>  
>
If __arch64__ is defined the signatures should be:

    _ZN9__gnu_cxx12__atomic_addEPVli
    _ZN9__gnu_cxx18__exchange_and_addEPVli

therefore we could use the usual:

     _ZN9__gnu_cxx12__atomic_addEPV[il]i
    _ZN9__gnu_cxx18__exchange_and_addEPV[il]i

Paolo.
  



More information about the Libstdc++ mailing list