From patchwork Wed Aug 16 09:43:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 135739 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:3f2:4152:657d with SMTP id x8csp988567vqo; Wed, 16 Aug 2023 02:44:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGtR0OVDYkkNRF1r1h2OrqoR0laOmbl6irk/O5ogfWfWDe24poFYG/0wjbsUafffR1AEzIC X-Received: by 2002:a17:907:11d0:b0:99c:1b9a:b09e with SMTP id va16-20020a17090711d000b0099c1b9ab09emr1203771ejb.75.1692179091511; Wed, 16 Aug 2023 02:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692179091; cv=none; d=google.com; s=arc-20160816; b=1ECzyxzTqjhukpQwa7cafzrzatHLbtjWnhyC+rDRf7GHSIvH3Ivy5e2X8rbNzlj0ai 8TPzDS3mUzsP7yRmv23BxgxzFo+1mwo8jMihYpeyVkNXQiibIiZAeMg7E5GBSW0lK/2K TmgHT91IACs2lmHUFUVHhC7JcwC7G9xLrUsudb73Wq9BSe3r1E5TQmPlQdSqwRNX7pTq hslUOoktBr75KOY57TF6CBDP/zj0zgVyUXSfhUqy+5rG2E6l74mPKTnIULQVjBUE7wbz Adz/B4M5qR1iU4An6S4kytrOQGxTt7JJ0jpNxItVDxz24ydv6IdxINmfREvgjXCOfG3I KggQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=cVDY8S8hi9IecTIH4OKG6smsPriy5wUEATVLcTABchg=; fh=/JJEj+I5j40/Spkll6HT+Gte92Mjc5mpTnWowlKfaJ8=; b=Oi4nAx0pQoSy2eNvZF7gv65MTxtStxpno9kuRiRYr3CMv9hKBVxAVaThzkI6yymt7C N2FqmljMLieyKVlYF4xQbaady6cpNzyy++SPVDdCuao4fqycCCwB5PuI1NFyPVjafSa2 wZTSa8mS4K8OAypQm/DNQetd1KtF1REJauu6e4Mu3IugLeuV6JePFP2zf/yw4qpMPrUm 5Fc6gZN87b6gLsVgZoHRjz1MHJ4it2XdVe5vF24Kd54Q/sWSIAqIXiFd6lR88N7b32/V 7MqUNf6d7k6vV3BKXFAmU01TspdVxd8+Ot55ubKwhesNPmwl3Ee7PYlfnOziCT7Ffc2r Lixg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=ZHfhpl9I; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id d3-20020a17090694c300b0099bcd1d96acsi10645843ejy.9.2023.08.16.02.44.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Aug 2023 02:44:51 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=ZHfhpl9I; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 74B223858409 for ; Wed, 16 Aug 2023 09:44:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74B223858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692179090; bh=cVDY8S8hi9IecTIH4OKG6smsPriy5wUEATVLcTABchg=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=ZHfhpl9I/qdu/mSbosmhh2bc/6fV+1+UV4tnAoK66o5nMK+VP39iBXYQwbeu0hS+V 2pfixnV2bilF8lI3u115SMb3EMhBssOGclCRhhaSfjEL9bx092E2rvnrPCII1xAZaH wq9qKYoLiFddKr/BK5d1H1sib60S+0Hg79NzyN9A= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by sourceware.org (Postfix) with ESMTPS id 351153858C41 for ; Wed, 16 Aug 2023 09:44:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 351153858C41 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="375259273" X-IronPort-AV: E=Sophos;i="6.01,176,1684825200"; d="scan'208";a="375259273" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2023 02:44:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="857744817" X-IronPort-AV: E=Sophos;i="6.01,176,1684825200"; d="scan'208";a="857744817" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by orsmga004.jf.intel.com with ESMTP; 16 Aug 2023 02:44:01 -0700 Received: from pli-ubuntu.sh.intel.com (pli-ubuntu.sh.intel.com [10.239.159.47]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 24A86100569E; Wed, 16 Aug 2023 17:44:01 +0800 (CST) To: gcc-patches@gcc.gnu.org Cc: juzhe.zhong@rivai.ai, kito.cheng@sifive.com, pan2.li@intel.com, yanzhang.wang@intel.com Subject: [PATCH v1] RISC-V: Fix one build error for template default arg Date: Wed, 16 Aug 2023 17:43:59 +0800 Message-Id: <20230816094359.2230366-1-pan2.li@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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 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: , X-Patchwork-Original-From: Pan Li via Gcc-patches From: "Li, Pan2 via Gcc-patches" Reply-To: pan2.li@intel.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774378383053623211 X-GMAIL-MSGID: 1774378383053623211 From: Pan Li In some build option combination, the default value may result in below error. This patch would like to fix it by passing a explict argument. riscv-vector-builtins-bases.cc:2495:24: error: invalid use of template-name \ ‘riscv_vector::vfcvt_f’ without an argument list Signed-off-by: Pan Li gcc/ChangeLog: * config/riscv/riscv-vector-builtins-bases.cc: Use explicit argument. --- gcc/config/riscv/riscv-vector-builtins-bases.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/riscv/riscv-vector-builtins-bases.cc b/gcc/config/riscv/riscv-vector-builtins-bases.cc index 22640745398..18453e54b51 100644 --- a/gcc/config/riscv/riscv-vector-builtins-bases.cc +++ b/gcc/config/riscv/riscv-vector-builtins-bases.cc @@ -2492,7 +2492,7 @@ static CONSTEXPR const vfcvt_x vfcvt_xu_obj; static CONSTEXPR const vfcvt_x vfcvt_xu_frm_obj; static CONSTEXPR const vfcvt_rtz_x vfcvt_rtz_x_obj; static CONSTEXPR const vfcvt_rtz_x vfcvt_rtz_xu_obj; -static CONSTEXPR const vfcvt_f vfcvt_f_obj; +static CONSTEXPR const vfcvt_f vfcvt_f_obj; static CONSTEXPR const vfcvt_f vfcvt_f_frm_obj; static CONSTEXPR const vfwcvt_x vfwcvt_x_obj; static CONSTEXPR const vfwcvt_x vfwcvt_x_frm_obj;