From patchwork Sat Feb 5 09:30:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kito Cheng X-Patchwork-Id: 1588728 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=sifive.com header.i=@sifive.com header.a=rsa-sha256 header.s=google header.b=NPgx0RGl; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JrRww1nKbz9s8q for ; Sat, 5 Feb 2022 20:31:10 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC3593858020 for ; Sat, 5 Feb 2022 09:31:07 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id 7D4D93858D28 for ; Sat, 5 Feb 2022 09:30:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7D4D93858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sifive.com Received: by mail-pl1-x634.google.com with SMTP id y7so1907786plp.2 for ; Sat, 05 Feb 2022 01:30:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WuQhyhPAR+9s08b2srenb64No+UnddIxZBWjjzyog/E=; b=NPgx0RGlESeZyZbw7phGtSAnHi9xHxUqYAlns6vU3iPiI0wTo0SK64uMqMeNXaByN0 XqcKAwPJrok58m/sqRhFCB64/iV7ilXmw6RQ92vjiQv3/ks6WdPP0sYsZ8J0Nx4ju5Du ptAG7syjlZVeL/VH9YD7/YBQMW5ZQthyan1sejIWv7q2bCpoeLjgOdH4ntIxt+AvisCr 0IkkzeKo47YleLRrPVg0q7cphzSX88YH4vYpbxzd88o76xGPc50ob40lg0/U3G752Pe5 wnfYgs56oYTQaufjeQ4kFFrPP4bdM0UACAq/tOovA28IxQhJyVux37J/z+t4I/yCjKkp vIuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WuQhyhPAR+9s08b2srenb64No+UnddIxZBWjjzyog/E=; b=t93612dOXZTU39xtRcTOY8oNdtHOo4NNeFvXgLSrqzLAXM/8SuASlypdlDx8TiH3Qo 91Vv7g6K9LgcBFYPcWXicyhTwd9fQX3d3ZtliYWXpJzWRq+3iWgL86lP6GQIQbigDeEM 8JOwxgjSvv3hp+n6t03L4Gwyhplo9QseQvr5E6YZWcdCPsu/H+487161rURbcSRN+8Y4 mSypEAlYmLk7etrZr182DQ6DoXXgurD/RW9mEIkQLQkngeq6VsD26tSG6/u3W2KOtznV +MnZzlC5SSDjoVQ9TRMH3EsryRfVVwMqEDdnFHNeCYXNpO5CZq7SWAqXW4yWeB98SriG G0+w== X-Gm-Message-State: AOAM530tgxsUu1RaVeDffX51D6MVJDcBtHWntUfHOux4WJJuHOODGas3 ki6Ebed8vpFDJIfYNrzRQpjTqh+LwwryyA== X-Google-Smtp-Source: ABdhPJylouC5yMqSZ3fc6lCpvVcWTE0VraqgtztTKgRfZ6lBJbwnGqRRnDKElK2vBf463TSiyODVzA== X-Received: by 2002:a17:903:2447:: with SMTP id l7mr3677958pls.62.1644053440177; Sat, 05 Feb 2022 01:30:40 -0800 (PST) Received: from hsinchu02.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id o5sm5240036pfk.172.2022.02.05.01.30.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Feb 2022 01:30:39 -0800 (PST) From: Kito Cheng To: gcc-patches@gcc.gnu.org, kito.cheng@gmail.com, jim.wilson.gcc@gmail.com Subject: [committed] RISC-V: Fix detection of zifencei support for binutils Date: Sat, 5 Feb 2022 17:30:29 +0800 Message-Id: <20220205093029.111476-1-kito.cheng@sifive.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kito Cheng Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" - binutils will complain version info is not found if default ISA spec is 2.2 for binutils. Error: cannot find default versions of the ISA extension `zifencei' gcc/ChangeLog: * configure.ac: Fix detection for zifencei support. * configure: Regenerate. --- gcc/configure | 2 +- gcc/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/configure b/gcc/configure index bd4d4721868..258b17a226e 100755 --- a/gcc/configure +++ b/gcc/configure @@ -28746,7 +28746,7 @@ else gcc_cv_as_riscv_march_zifencei=no if test x$gcc_cv_as != x; then $as_echo '' > conftest.s - if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei -o conftest.o conftest.s >&5' + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? diff --git a/gcc/configure.ac b/gcc/configure.ac index 1171c946e6e..06750cee977 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -5286,7 +5286,7 @@ configured with --enable-newlib-nano-formatted-io.]) [Define if the assembler understands -misa-spec=.])]) gcc_GAS_CHECK_FEATURE([-march=rv32i_zifencei support], gcc_cv_as_riscv_march_zifencei, - [-march=rv32i_zifencei],,, + [-march=rv32i_zifencei2p0],,, [AC_DEFINE(HAVE_AS_MARCH_ZIFENCEI, 1, [Define if the assembler understands -march=rv*_zifencei.])]) ;;