[RFC PATCH v3 05/12] C-SKY: Atomic and Locking Routines

Joseph Myers joseph@codesourcery.com
Fri Jun 29 16:36:00 GMT 2018


On Fri, 29 Jun 2018, Mao Han wrote:

> +#define USE_ATOMIC_COMPILER_BUILTINS 0

Does this mean the compiler expands the atomic built-in function calls to 
out-of-line calls to libgcc or libatomic, but you wish to use inline 
expansions in glibc?  (That's the main case when 
USE_ATOMIC_COMPILER_BUILTINS 0 is appropriate.  If there are suitable 
atomic instructions, typically the compiler would expand the calls inline 
and USE_ATOMIC_COMPILER_BUILTINS 1 is most appropriate rather than using 
inline asm for atomics.)

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list