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 7478A1F85E for ; Thu, 12 Jul 2018 20:38:06 +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=jEcpzWhxWsRb/K6+ sxovJcvTd44QsHm1Iok7AmaNHp+LY3tpUzeVm2aZ1LlhftG95m77Nn/14tq8wbeJ 8lcAOU0PGyNjXXWHQ2Xs5q/8bXChrrmQkEbXRtGcD4unCb37b8ShFqTGBorh0uSi O+xMo+8JoB4QyI3oQ7KqOsSAZec= 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=1ls6GD9iPjyRRv+jDziDi7 eV7nk=; b=i2ngauaDn9RLomRjch05W8WpbJt4LG/U92jfjf/UP2wbTmTv1lMDLD +XWqBVh5IG4dP5jq/Id+JUo8id1Wt6nGKBqQ9UZ/LlfMjhrDJsvfxFhe1MNXKtg6 6NfKGctdommKVTKGzwYKVAjT03j6jn4Y/HyW+eBftRyDaKcYnOp/E= Received: (qmail 103364 invoked by alias); 12 Jul 2018 20:38:04 -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 103351 invoked by uid 89); 12 Jul 2018 20:38:03 -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> <542a0078-8a10-b0be-fbf7-ae3f8bece155@redhat.com> <7bc71183-1c78-21d8-f482-6acd04c8fd66@linaro.org> From: Florian Weimer Message-ID: <9b5ba1d0-51d2-05c2-ca48-ce8caa5c7b2f@redhat.com> Date: Thu, 12 Jul 2018 22:37:59 +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: <7bc71183-1c78-21d8-f482-6acd04c8fd66@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 07/12/2018 10:32 PM, Adhemerval Zanella wrote: >> 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. > I think we can just not define it for C++, not really checking which > version is being used. Sounds fine to me. Thanks, Florian