Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp269857ybt; Tue, 7 Jul 2020 22:48:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxASFULVk7DVsfCw5IFAYL9V9lM028Gx0AJFHVqC+Mcgjc3Ke/fzqF6sa3xecYo02PEoFBr X-Received: by 2002:a50:93a2:: with SMTP id o31mr17394786eda.203.1594187309865; Tue, 07 Jul 2020 22:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594187309; cv=none; d=google.com; s=arc-20160816; b=zU6wqTWbT4ks4NRhf6l1E1HcAxer6EOyEKHI9OkjVnSDx6NYoCXEx0t0TEwp+AmrHZ XSoxVRtgCUh5m8r0YpCi3XgyJBcuq9FWLOcEGfqEPPh/AJNImpu894KTnmvVj0aHX6SX 9OFgmI3lrhYVXUWy8glPnHzmdoU2Po96PD968Bp2/vSdSR1PcY89baaWQSoEts8vDtwN TPyNa4J4CligQvtDyDjTVp/3m1kK/nTt+9RiTxOmp7dFX3klj9OivbWuPYjL/MqMemCB KZ2+gjv4e7FfIDf3JHRYE8HVNBaug9LseZbqiJnxvea+o1GYV/dr+F5XK8XVrvxSDS3H cxVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=YhMAENbA053oQkAKMEO1F2OZqw6DXtIlYHFxNNL0o/o=; b=PEwA6Qj+iG1DJZkWqAl8mRYNoWqBKeyhptzZV7vf310yF8ZH6n03bA7GMZDsgJAMb2 UC0DrbXQD0TKEiwZf+upUDg5wBmpQo5XEYB7nFo2JNkQ0caecjOrDktOy614EpCBSo7g EhZ2Kp7uFEhUxZybFhvSxCB3+213bcsS4B1eUwbRyjxjUeVyxm7ROqDnXSlXAkB4b64n zQmR6YYxyqWiKusRGoCLEFQ6+iiTQUeGDqixkEtDM3uzi9HKuQPBRnEw/3cN07xsWYIs 0h157GhI9nYFvmRPKQR8FNn8VJNMwj655ceiidEhIgDc+1evA2K5bkvTB9pdGE8E9cPl cOYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si16875573edq.307.2020.07.07.22.48.06; Tue, 07 Jul 2020 22:48:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728642AbgGHFoG (ORCPT + 99 others); Wed, 8 Jul 2020 01:44:06 -0400 Received: from out28-4.mail.aliyun.com ([115.124.28.4]:52971 "EHLO out28-4.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbgGHFoG (ORCPT ); Wed, 8 Jul 2020 01:44:06 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.577819|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0144316-0.00272735-0.982841;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03294;MF=maochenxi@eswin.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.I-3Y8gn_1594187037; Received: from localhost.localdomain(mailfrom:maochenxi@eswin.com fp:SMTPD_---.I-3Y8gn_1594187037) by smtp.aliyun-inc.com(10.194.97.171); Wed, 08 Jul 2020 13:44:01 +0800 From: Chenxi Mao To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, chenxi.mao2013@gmail.com, Chenxi Mao Subject: [PATCH 1/1] riscv: Enable compiler optimizations Date: Wed, 8 Jul 2020 13:43:54 +0800 Message-Id: <20200708054354.25283-1-maochenxi@eswin.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable ARCH_HAS_FAST_MULTIPLIER and ARCH_SUPPORTS_INT128 for better code generation. These 2 configurations works fine on GCC-9.3 and GCC-10.1 Signed-off-by: Chenxi Mao --- arch/riscv/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 128192e14ff2..f21b7e5188ca 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -26,6 +26,8 @@ config RISCV select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU select ARCH_WANT_FRAME_POINTERS select ARCH_WANT_HUGE_PMD_SHARE if 64BIT + select ARCH_HAS_FAST_MULTIPLIER + select ARCH_SUPPORTS_INT128 if GCC_VERSION >= 50000 || CC_IS_CLANG select CLONE_BACKWARDS select COMMON_CLK select EDAC_SUPPORT -- 2.25.1