Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1875484rwb; Fri, 19 Aug 2022 10:52:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Vp3encfu8oU/tQxvgIvOkCoaI4mAR6KryPMNagkyZEt9v87r7Wbx5dVbTrXuCtbe3s6+n X-Received: by 2002:a17:903:244c:b0:16e:fa53:a54c with SMTP id l12-20020a170903244c00b0016efa53a54cmr8164584pls.46.1660931554351; Fri, 19 Aug 2022 10:52:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660931554; cv=none; d=google.com; s=arc-20160816; b=eh3TkO4GzjMpGXs5U+xnqknHjBkYnWB0kQbK/Ulpp3bRHecwZ63GoMUSMPLaiOjrnt GugQ/N0JzVXQdpuAcWRbmrtAZrKBZFQVzGIAb0HtqqpuWn2qmluoUo2aFshH2GVhjHKr NGOu1NZ3Az2OoksKT71gv4/eEGfMzkzQWYU2VwdV9QqP4KNpYp6FN5I3dPztARK6NCtC 8syZy+BJdbhCIUzk7kkZ4YcBK8m5AMDO3NtzbJLQDg9nLjYWBq+/6yvONMfyo/uwvSs2 vVZyy5FuZp1HUAn1yBNPA7eZ6NaemOWPFuwQd9CxNMTum46KsC9IZ1KCfNNvRru8Bi2h zBfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jBh1UbdsKajFE932mTf86NTEzzBwRixx74h/kr9bRj8=; b=x20BA7U5iyjv5r3kHrMtSA1tdvS47wjW4fjhqqxrCIbJNqnxQuF0YVUfbKrBw7UoTt iEHDtK8TfAc6QLchtqe7n25ynvmNZobUYS5miI3wM9rPZuG264a1VaxU6ZW0exEFtD8l 2XMBS8OGmTwbfdAderaKhSmWcJX/4bIP/HwDmhdOw25qh3n0z5f4WcuPvU8szDg6ZMT9 FqebDHiCqWjMjjICiOTYCuJe8mf4G2kXTFSJAiU7ixO8kYD6EuuTeFVp8tuYMtX6jrbr aWHA5EmbRQgnYakG8w4rp0GyEQErywD70JBuWfPex2FbeQhsrOnNTy3Zn5MlhCNj8XiN SBZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=JqUxUTJk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020a630d08000000b0041cda7ee9acsi4547440pgl.417.2022.08.19.10.52.22; Fri, 19 Aug 2022 10:52:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=JqUxUTJk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350676AbiHSRMa (ORCPT + 99 others); Fri, 19 Aug 2022 13:12:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350554AbiHSRMK (ORCPT ); Fri, 19 Aug 2022 13:12:10 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E761D14328C for ; Fri, 19 Aug 2022 09:31:53 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id a9so6753831lfm.12 for ; Fri, 19 Aug 2022 09:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=jBh1UbdsKajFE932mTf86NTEzzBwRixx74h/kr9bRj8=; b=JqUxUTJksgA8Zy6DqDMZoTUUkEgDvtco2VdSts57CP+Qy2eClm3e6eM9dUHObfiAsV BYY6sFczhrlmmzzptl2Ip7fKMjW0nBsjb+LatZ+gKqBHj9MFnn/WAKRNgUza5GVR3asm UYR5vSlfAP6QM8gSEqICZ9pZn/zh1zH0hXQ3FckoHRIaW5KS8PbsjFk1qo0QqzAmLGIF Y7USXWnPQS8nmksGVLoXM6E1UPzFuQW1FlEh7XKrLCfopX3CcbfUx9kJAQBMj6ynEO2d f/ggDPM2wSEymlmiIt0ImjvabdXl7EiB5ph5IH2Zkdll1iR1CnPksxDVjAgUdc8n6Wo8 DxlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=jBh1UbdsKajFE932mTf86NTEzzBwRixx74h/kr9bRj8=; b=BHCENak2WdlhB2CVSLF+63AQ86qSj0VDKHNwVELUhfI7V87vCoIN6gp/Rdv523Hps1 8x8NdEEH9+Ij3mnbuwn6rW9osD4VKcl8MUWTVcOOyYPasHOtYcbPYGNZfBCmXXuNxfyr neAIUBZLLc+G2kE3vrvwa/j1Uve20V5MiJL5CrGLSH8l3IJrazz0+2QvNTbPbSBEzTPI RBnaLY6O0cISQHkCKMWnRoCSZ+Xv8ZYlzsxm2fFiFtvwOAF0hd6/s6uoq/DwzUCuPQFn yxiYxRMIKTZdxg0Slml30/e34dMUEHzY620EyQj3hHkgqB9kDiv4gWcZVDk2k5NZEjJC ae2Q== X-Gm-Message-State: ACgBeo3GDirdo06xs1FomzroIO1+xmHN891Gkg26x3n8wyDf5tXh99Ff raVoj+SaxyQy7pRELqzqIpwM6iNry8hqEekv0aX1KQ== X-Received: by 2002:ac2:4f03:0:b0:48a:6061:bd8e with SMTP id k3-20020ac24f03000000b0048a6061bd8emr2949968lfr.647.1660926710894; Fri, 19 Aug 2022 09:31:50 -0700 (PDT) MIME-Version: 1.0 References: <20220804190320.262510-1-alexandre.belloni@bootlin.com> In-Reply-To: From: Nick Desaulniers Date: Fri, 19 Aug 2022 09:31:38 -0700 Message-ID: Subject: Re: [PATCH] init/Kconfig: fix CC_HAS_ASM_GOTO_TIED_OUTPUT test with dash To: Masahiro Yamada Cc: alexandre.belloni@bootlin.com, Sean Christopherson , Paolo Bonzini , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 18, 2022 at 7:29 PM Masahiro Yamada wrote: > > On Thu, Aug 18, 2022 at 8:47 AM Nick Desaulniers > wrote: > > > > On Thu, Aug 4, 2022 at 12:03 PM wrote: > > > > > > From: Alexandre Belloni > > > > > > When using dash as /bin/sh, the CC_HAS_ASM_GOTO_TIED_OUTPUT test fails > > > with a syntax error which is not the one we are looking for: > > > > Thanks for the patch, though I think I'd rather see `/bin/bash` > > hardcoded. Bash is a non-optional requirement as of > > commit da4288b95baa ("scripts/check-local-export: avoid 'wait $!' for > > process substitution") > > scripts/ is kind of a mess... > > > > As for scripts/ mess, > perhaps we can remove scripts/gcc-goto.sh? Good idea, I think we can. > > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48637 > seems like a bug for GCC 4.x at least... > > > If we can revert the following two commits: > f3c003f72dfb2497056bcbb864885837a1968ed5 > a9468f30b5eac6957c86aea97954553bfb7c1f18 > > ... the asm-goto test will become simple enough > to fit into init/Kconfig. > > > If we know all GCC 5.1+ and Clang 11+ support asm-goto, > we can remove CC_HAS_ASM_GOTO, but I am not so sure. Yeah, asm goto has been supported for many releases of either compiler at this point; here's versions we don't support anymore for kbuild yet demonstrate asm goto support: https://godbolt.org/z/dr3zzn98e. I'll send a patch with your suggested-by tag. -- Thanks, ~Nick Desaulniers