From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id 794DD3858D39 for ; Fri, 28 Oct 2022 21:32:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 794DD3858D39 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-x62e.google.com with SMTP id y4so5937527plb.2 for ; Fri, 28 Oct 2022 14:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=HvReIiLjEFaUV4+8STrFjsWthhyUOkJppFQUBWqJR0k=; b=dVsUmvNW7GaJXbpZv2WvPM8IEW9Zp3fK6DMW8CcJ+KmGqM2MSPTQnS1P6VAViPhBiH Gb4oAeEZbuhnhCY5oXP4uDoM9/e/4+OhGmopPEbHNNHsEAoQOA6m1MPXaBhC5x7bnQFl kZ3gXCBR0sahMNaHnSLe4iOJftWQKsrcr9q3HWWF3HDH2Yav3TTS9xtA5MVGPkMcYRx5 RROcLQvOJheN/NvS2qhwalFfBKbf996RKDS5cxMBikF7FarTMaXgxggi6ADvh8bfp0Lw hwNP3qZIHQVUYCMKof+OQqe5jXrVjamlzpiZ58CyIQLSqrGBFYv03++I5LRGCydyUJu+ klHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HvReIiLjEFaUV4+8STrFjsWthhyUOkJppFQUBWqJR0k=; b=s6QCt1DjSYHcReAHeszb0IK1Z4YvAVhzHWlT7C53G0kusUN9KTh9sCaA1WuEyLdnHB Eb67X4wWd5CRRFYcBbcYevROM1V+144SsVE+lJqze13GgUMhNQgCu/BL5w7Ke4goPd06 6QYu9hW0IZcwxreYW+fwjAlARU5fLYMt6ZA/pZTlHZ4hnhFYQ724B+zyuvMsB6Fj7Qff h1h4zmqphe9AVfedC/WpXRGg5U3XnP6aiZN7oQkwglHFU0viyC6ypVRt7JrjRh8pgT2P K5tDCXUhInwvti3DSqOQYX6vEBuYJglqS+16+CdWKhZ9Z3pkrWuHSRL12R/CTok9uX89 5z5Q== X-Gm-Message-State: ACrzQf2fyRhgntxQBEN+wir47rxXYsgB3qHOpvsJGAl6GsBaFoa6mToB /Pho0OZ//NLAGQ2U80mYM5H3Yg== X-Google-Smtp-Source: AMsMyM5yrIexRdY5VqWEnFWBO7yT2NrHTtuyCdgklpIpHlDXiASp8hSYiGRK3ie91/6Pa29WzYcX1Q== X-Received: by 2002:a17:903:2014:b0:186:8937:28a6 with SMTP id s20-20020a170903201400b00186893728a6mr1017574pla.39.1666992757378; Fri, 28 Oct 2022 14:32:37 -0700 (PDT) Received: from google.com ([2620:15c:2ce:200:8981:f21e:b257:256]) by smtp.gmail.com with ESMTPSA id q5-20020a170902bd8500b00186c3af9644sm3431266pls.273.2022.10.28.14.32.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 14:32:36 -0700 (PDT) Date: Fri, 28 Oct 2022 14:32:33 -0700 From: Fangrui Song To: Joseph Myers Cc: Adhemerval Zanella , libc-alpha@sourceware.org Subject: Re: [PATCH 01/11] stdlib/longlong.h: Remove incorrect lvalue to rvalue conversion from asm output constraints Message-ID: <20221028213233.anuo3qzfssgjg4g6@google.com> References: <20221028173532.876027-1-adhemerval.zanella@linaro.org> <20221028173532.876027-2-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-20.0 required=5.0 tests=BAYES_00,DKIMWL_WL_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 2022-10-28, Joseph Myers wrote: >On Fri, 28 Oct 2022, Adhemerval Zanella via Libc-alpha wrote: > >> From: Fangrui Song >> >> An output constraint takes a lvalue. While GCC happily strips the >> incorrect lvalue to rvalue conversion, Clang rejects the code by >> default: > >We treat GCC as the upstream source of this file. I tried gcc-patches in 2021-10 https://gcc.gnu.org/pipermail/gcc-patches/2021-October/581722.html stdlib/longlong.h: Remove incorrect lvalue to rvalue conversion from asm output constraints If the GCC patch is not favored, the clang build will have to use -fheinous-gnu-extensions :(