From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.6 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 869FA1F85E for ; Thu, 12 Jul 2018 16:49:12 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=n6rltJiWcdI5CAMN 23kJnLFYqFygBktxGg62jdkQx9px1S44+eNBKZjVjCg6O116XnbpZL8UC0Bs0Kss IhkQXK86qaPeekUBj0GZ8VAW3OXtg0uLHRoN4eMxJj/QhDyS5hb0xvR41aceYOpM 03KQo7QA+Pmc3F32DE8vv7lpTso= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=CPIXip3YWJSFz3P+wsUd9E POvpg=; b=BgYMVI86feo6eOvRqJeiaTPKOoRkT6MkbvYdvS6qKn6ahlwn4RY8Wb UP2UU3E0bkIu2yCfDjG+8GyTlMQghNCddoXbdjW6UZLWZs60GUV6JvKPW+S3nl0Y aRy2dNiBV442jKdtMLjOf0iNTGHyCR605HbjklQPbNKNyHo0drYIM= Received: (qmail 93546 invoked by alias); 12 Jul 2018 16:48:58 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 93198 invoked by uid 89); 12 Jul 2018 16:48:29 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mx1.redhat.com Subject: Re: [PATCH v8 5/8] nptl: Add C11 threads tss_* functions To: Adhemerval Zanella , libc-alpha@sourceware.org References: <1517591084-11347-1-git-send-email-adhemerval.zanella@linaro.org> <1517591084-11347-6-git-send-email-adhemerval.zanella@linaro.org> From: Florian Weimer Message-ID: <542a0078-8a10-b0be-fbf7-ae3f8bece155@redhat.com> Date: Thu, 12 Jul 2018 18:48:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1517591084-11347-6-git-send-email-adhemerval.zanella@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 02/02/2018 06:04 PM, Adhemerval Zanella wrote: > diff --git a/sysdeps/nptl/threads.h b/sysdeps/nptl/threads.h > index eb89b0a..6a807ee 100644 > --- a/sysdeps/nptl/threads.h > +++ b/sysdeps/nptl/threads.h > @@ -28,6 +28,10 @@ __BEGIN_DECLS > #include > > #define ONCE_FLAG_INIT 0 > +#define thread_local _Thread_local This needs a __cplusplus conditional. _Thread_local does not exist in C++. The macro has to be defined to thread_local starting with C++11. Thanks, Florian