From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115268 invoked by alias); 29 Jun 2018 16:36:27 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 115259 invoked by uid 89); 29 Jun 2018 16:36:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=Hx-languages-length:617, han, wish X-HELO: relay1.mentorg.com Date: Fri, 29 Jun 2018 16:36:00 -0000 From: Joseph Myers To: Mao Han CC: , , Subject: Re: [RFC PATCH v3 05/12] C-SKY: Atomic and Locking Routines In-Reply-To: <52862eb735de64be1bd5a61b21ef9585e665558d.1530246556.git.han_mao@c-sky.com> Message-ID: References: <52862eb735de64be1bd5a61b21ef9585e665558d.1530246556.git.han_mao@c-sky.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2018-06/txt/msg01003.txt.bz2 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