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 39C2D1F85E for ; Fri, 13 Jul 2018 09:32:56 +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=fYsspqkHxPiXM2r0 A1G8xAmswcA6xvGTx5A84opuvH26HCwYWOEqdHJAWUYdzC2AZFPFZBczBxOFMXKk Sm6zZsia5Ddt6zCvHpbVCzIBlxYzEPMM0YoAjPubSvz431U13PlqqtG3REUzgdt7 3SmM7Mze9Lqib0g9QwOwLd/V53I= 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=62xdYaml6yEKVEqwdCaQi3 dY/Pw=; b=vtgMC29GahLa1F6nRif+2cWDX8zAeuu0nYK/LW7P2THulYoSvU2oQe BkiMOsGxK7jduj4jY2rCsQvkUwSKT6WO3HpngVHbfXfI/uPlufJFAuBurzkhCNvJ /BfBzHzxy/a6ZKVmtJSled0B80zApzFKPzJn0acUND5AiMdZNH+uI= Received: (qmail 41171 invoked by alias); 13 Jul 2018 09:32:54 -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 41162 invoked by uid 89); 13 Jul 2018 09:32:53 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mx1.redhat.com Subject: Re: [PATCH v8 3/8] nptl: Add C11 threads call_once functions To: Adhemerval Zanella , libc-alpha@sourceware.org References: <1517591084-11347-1-git-send-email-adhemerval.zanella@linaro.org> <1517591084-11347-4-git-send-email-adhemerval.zanella@linaro.org> From: Florian Weimer Message-ID: Date: Fri, 13 Jul 2018 11:32:49 +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-4-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: > +#define ONCE_FLAG_INIT 0 > + > typedef unsigned long int thrd_t; > typedef int (*thrd_start_t) (void*); > +typedef int __ONCE_ALIGNMENT once_flag; __ONCE_ALIGNMENT is not expressible in C11, so I think you should turn once_flag into a struct with a suitably aligned member, and change ONCE_FLAG_INIT as well (into a compound literal). Thanks, Florian