From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by sourceware.org (Postfix) with ESMTPS id 122B03858D37 for ; Thu, 3 Nov 2022 12:17:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 122B03858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oi1-x230.google.com with SMTP id l127so1713634oia.8 for ; Thu, 03 Nov 2022 05:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=nJ22zHNk/b8TC5vtiPifDn/5ZqVw66IS9qpb88WCCX8=; b=Qpz1+Q5JCkLPN3FZ1W0jnt8yQ9iewFvNSlNdRMKy/0q+Uab/HTNVSJ0kZtZdItHjKl 3Mc1jr3K13w+0yiHcc0Q6jg3FmayMuSrzC8VU3c5ypuAwKanvy6yPlh0aqlrCkfO2Gmn dJdyL3h+wG9wzHOcmWwYQwsEj3CXmG8GztF55lAi8AFIrUIfbbbz/5l6+UhiyVfQ27w/ uGXbN+wse97VD6Ib6T3izHR5rT+A/rkynm3K13yx/+InYnkyy4lKq4omj5QAvq+D32Mj xL7v+994TVK3ZGns0DcizlbvFQC9coJvEEJrHdF+GT6wUvZwbL+C7hwM6AVo8n8rvDeK bm3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nJ22zHNk/b8TC5vtiPifDn/5ZqVw66IS9qpb88WCCX8=; b=GfPemfbCboGzsQL3SYWg0bHNHxJYs3ndD5cawm6QdoMLkLSK7ZpYnP4xPiJHmyHLVC G8fAwX7tGb82BWieas/lJtBHbSlt0EagbBoeFvHNjJ1E/2dWApfbAohV2rQ1NkX2PL4e i2lCgbMDFR50y4z+Wz3P+Ia8kAxC3QfBX9dSyhzP3gMOTnhhBcWgxkTLWExa5nyl+ZV+ 7OOtUCviZ5nxT3gGRsrZ/jCp4/8N7UQJRTPcNA5DanrdI3NP8iAEx22DfkiHUq+ym3wa 16aaivBK2VuV+Xb0VZ6WkeHMw5x2P67QnAUChQS/ZfkwshEyJCoj95Q5hoDtbE/BITZ2 m1ag== X-Gm-Message-State: ACrzQf2wZoal9X8sBFdyLEgXbKniyzpUN6My07xSipNBAmq0JlE0t6m8 L7eC1F8MAXCNmMhPDMOq9NmPUA== X-Google-Smtp-Source: AMsMyM4tTnTtMk75NAK015/6gRYFdDEJaEiRW8IK/Lki+kMcH78/FgMVHd00BTgZYCbrzWHs0Wrpsg== X-Received: by 2002:a05:6808:138e:b0:355:2b42:1580 with SMTP id c14-20020a056808138e00b003552b421580mr23992287oiw.91.1667477856189; Thu, 03 Nov 2022 05:17:36 -0700 (PDT) Received: from ?IPV6:2804:1b3:a7c0:a9f4:4093:e060:2c0e:46f6? ([2804:1b3:a7c0:a9f4:4093:e060:2c0e:46f6]) by smtp.gmail.com with ESMTPSA id eo20-20020a056870ec9400b0013ae5246449sm270099oab.22.2022.11.03.05.17.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 05:17:35 -0700 (PDT) Message-ID: <8f5afa2a-f5ba-cf87-3f81-49661d802f83@linaro.org> Date: Thu, 3 Nov 2022 09:17:33 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 01/11] stdlib/longlong.h: Remove incorrect lvalue to rvalue conversion from asm output constraints Content-Language: en-US To: =?UTF-8?Q?Cristian_Rodr=c3=adguez?= Cc: Joseph Myers , libc-alpha@sourceware.org References: <20221028173532.876027-1-adhemerval.zanella@linaro.org> <20221028173532.876027-2-adhemerval.zanella@linaro.org> <20221028213233.anuo3qzfssgjg4g6@google.com> <7eb7deb7-4431-c32f-daa4-0f9f0d560dec@linaro.org> <118fd536-3493-0476-5f59-32f7fd7f27b1@linaro.org> <1686b-d2f0-c86-ecdf-9a1c50968ea5@codesourcery.com> <52d0580c-c272-8293-1118-1502b1026f7a@linaro.org> From: Adhemerval Zanella Netto Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 02/11/22 16:43, Cristian Rodríguez wrote: > On Wed, Nov 2, 2022 at 2:10 PM Adhemerval Zanella Netto > wrote: >> >> >> >> On 02/11/22 12:14, Cristian Rodríguez wrote: >>> On Tue, Nov 1, 2022 at 2:06 PM Adhemerval Zanella Netto via Libc-alpha >>> wrote: >>> >>>> I am open to suggestions in fact, >>> >>> What about just using the compiler builtins directly and not using >>> this header at all? >> >> My understanding is this header should be used in the scenario where the >> builtin might generate libcalls, for instance on libgcc and/or libc. > > My - I confess very limited - research the other day suggests there > are very few targets without __clz* __ctz__ patterns.. On this case it > will indeed call libgcc (is that frowned upon still?) but not libc ... This header is also quite ancient, I think it provided the counter leading and trailing zero even before the ctz/clz builtins and before ffs libc function. But I agree with you that builtins should be used when possible. Another issue is the ctz/clz analogous is not the only interface it provides, but also a some macros used extensively on some soft-fp routines. We will also need to rewrite a lot of interfaces, which is shared with gcc as well.