This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]