Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3759213imm; Mon, 17 Sep 2018 02:44:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ2EUiLRI0XnTUc4k3b4Frd8NjwDs0fRAxLVVu+nZxIhLmlw0gpvXCKPlOsoTULU67tgacX X-Received: by 2002:a63:f043:: with SMTP id s3-v6mr19582937pgj.94.1537177487084; Mon, 17 Sep 2018 02:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537177487; cv=none; d=google.com; s=arc-20160816; b=zMvfbTRxzUUlqhH/J+fzbYGcBLM7tyH7Zj7sFugEjvKtCMAkvCefVkg0IpdaFxg8xf FSx2nikGvlDXkXgvhsFCrv20kffK0Ur1uP7JZXtM69XAeL3HAse/cSGhFqrEziHT2SIO fTSz0HUhyZ1JasMC/ImUvo6gld2XsC9vw0123vOMlwUimOm74Ngdd1zTUhtZX4ynCcHr CU4L8xYzeBQDDZOfrf7x57hzHwgI0r+M88IERJqdiG0xOEzqvR27Ob+NgRqfMSXvBq/p BB5H9nnXEya5zQPIR4odB3lKKtL+D//Pc59WVO+BakqW1I7cfiSYFL/FrUUoC6bM/Kpx 4FMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=Xh4M6paCi9TSfEEGcSBy5yyQ2KlQP8SF9pEgmw/4DMs=; b=QZ4jVtScXT8bhGbl9zQHvIpF+No2cUFqXr/qLxgsvJ+tpmYdEzDoWiDg+R31UM9xXc SY2tEfTcjkbkEruCGv8Qamz8sPkz1JiRIPVi9oPJe3p6xELMwzdvqZTiYi9kEI+AiYq5 d0RrtLjtgeFPHsZCAdHso88yGQexpgYS8k9GCoP6Gao66Htrd4Sqe1P5dVKhi9VI2btT qOkQtgpsdbxVaysaCVYv67SKzEiN3+h0rt8KFNXgLv9otYGZT00jvvA4HIAqQi00vJUG 0P9GWyZ+mJIPlAgUU+Xl1w7YCKaV9XJ+gTFiojnL7oq3gqgHQg/ygrIZnGPOXCHM4Zx9 R4jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v190-v6si15087325pgd.128.2018.09.17.02.44.31; Mon, 17 Sep 2018 02:44:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727839AbeIQPKm (ORCPT + 99 others); Mon, 17 Sep 2018 11:10:42 -0400 Received: from mail.windriver.com ([147.11.1.11]:44933 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726979AbeIQPKm (ORCPT ); Mon, 17 Sep 2018 11:10:42 -0400 Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id w8H9hoAw004511 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 17 Sep 2018 02:43:51 -0700 (PDT) Received: from [128.224.162.216] (128.224.162.216) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 17 Sep 2018 02:43:50 -0700 Subject: Re: [PATCH] scripts/gcc-goto.sh: Show stdout and stderr for potential errors To: , , , , References: <1533803685-42422-1-git-send-email-zhe.he@windriver.com> From: He Zhe Message-ID: <70e45fbe-b447-ee69-c870-c45f37a8f2c3@windriver.com> Date: Mon, 17 Sep 2018 17:43:47 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1533803685-42422-1-git-send-email-zhe.he@windriver.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [128.224.162.216] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org May I have your input? Thanks, Zhe On 2018年08月09日 16:34, zhe.he@windriver.com wrote: > From: He Zhe > > The check may fail not only because ${CC} does not support the asm > feature, but also due to potential defects of ${CC} itself like what > we experienced below or even it's missing. > > Assembler messages: > Fatal error: The input and output files must be distinct > (introduced by binutils-2.31 "Stop the assembler from overwriting its > output file.") > > This patch enables stdout and stderr to give user direct error > information for those cases, while not polluting the output for normal > cases. > > Signed-off-by: He Zhe > --- > scripts/gcc-goto.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh > index 083c526..bd7fc8eb 100755 > --- a/scripts/gcc-goto.sh > +++ b/scripts/gcc-goto.sh > @@ -3,7 +3,7 @@ > # Test for gcc 'asm goto' support > # Copyright (C) 2010, Jason Baron > > -cat << "END" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y" > +cat << "END" | $@ -x c - -c -o /dev/null && echo "y" > int main(void) > { > #if defined(__arm__) || defined(__aarch64__)