From patchwork Mon Aug 27 04:03:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 145154 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3737691ljw; Sun, 26 Aug 2018 21:04:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ8pknpbKs3z1qWaPAKo5JQd8miG1NWPCnxLMZhEOA6cJn5ZyIU8d7ZPQX/0jaT1xZ/4Qxp X-Received: by 2002:a63:1e63:: with SMTP id p35-v6mr10844800pgm.376.1535342688301; Sun, 26 Aug 2018 21:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535342688; cv=none; d=google.com; s=arc-20160816; b=FyXHc3OHrhk3EYNx4c6pvVjhSgizVuvjQWz3t8KVIFyrrvFWh0NgBfgVOMsSFMV1Xg BAo8q9bnf8QLKAmisVK41P2zymhUDZXyYp+6FNMLnQ98/6EKEwYOCuHmJ6l1gj+VFYtB mLrXd+34YzWXDQe2MtAcyupTAtCci9K7ObolIX1bukoc6F9LjxZe5RgUSuGpUSBDOKJh EhRIXzPAFObZzbipoEEpyatzCMXHdar6C1bcwmgaX5C9qziEmF/5KefZhds1VjNuA+uS vJFPN6nvUa25ozXIrC75zMb1THjlU0V+951Ff/PSv/63Lw3DyV8LHPrbYqYKV90oTNJB OdyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=QWXSE7/OQHBlT44+TGlqxkRhZ97JeJizcyopsk4jHsY=; b=aSX3U1h0Y761bRKY16zAKAVTKkGHHcw/ytJdsp/huFVmacJrIpPfv5Y+S9q4amg2U4 HpPFNAr/OHf1WjEFjXIaKBl8P31WilaVb5R8FP4HweTatkY0jRkuhui+nKrhOdAvr6pK ifQizaDfHiRXGnNW8UnU/HwC7nzGrASD31QGxtdjklTe9b3QtnrE0XDAey/YtpvtWcbB Io74zpi9RSvx/f9/Nyn+LEI9aygN1Q3nZkNWaQG9a5nDzEYDKeCme5uBfyqw113fyUc4 Eo2MGsWZ9OaQlY/fAEpp5yATWbmNiCh8qAjgI6tXO0uW2Tvobp0w1rnLDiO2hjuEVsZV HTTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ndaatIai; 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 m6-v6si13457200pgn.603.2018.08.26.21.04.48; Sun, 26 Aug 2018 21:04:48 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ndaatIai; 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 S1727079AbeH0Htf (ORCPT + 32 others); Mon, 27 Aug 2018 03:49:35 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:40458 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbeH0Htf (ORCPT ); Mon, 27 Aug 2018 03:49:35 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id w7R43Sia004053; Mon, 27 Aug 2018 13:03:28 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w7R43Sia004053 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1535342609; bh=QWXSE7/OQHBlT44+TGlqxkRhZ97JeJizcyopsk4jHsY=; h=From:To:Cc:Subject:Date:From; b=ndaatIailO5hoiLFnlwomC10Ew0c2977L3NOi01UukofNBoXEcec/BLZjs4FJByq3 h1onO5yIbQQdy4ukmP+kKAfSy85VKqsss7gZ0oyGAw62kfMyn//Y1ERbdmxorFY9n0 S45j8ZM+3RPx+oETlh3PD8OryIQODP1HYzeOSrMgbBnPx350RssdP3AYSlUy9EEujP HL3h7T15KEpOBn46UwMQIREh025770ah+sFED4fRIIN0dpP+mhwpWGxF+YK8f/r/DI PWC6WJ1GbsY++E3q/3WgMB5fqybF+QXj4o2onBDwPYFQUZcnvwu7FKTu9JGmo1x9Tv ZqYGcvU5gHTHw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Jeff Dike , Richard Weinberger , user-mode-linux-devel@lists.sourceforge.net Cc: Masahiro Yamada , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar Subject: [PATCH] um: remove -fno-unit-at-a-time workaround for pre-4.0 GCC Date: Mon, 27 Aug 2018 13:03:04 +0900 Message-Id: <1535342584-22174-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") bumped the minimum GCC version to 4.6 for all architectures. '$(call cc-option,-fno-unit-at-a-time)' is now dead code since '$(cc-version) -lt 0400' is always false. Signed-off-by: Masahiro Yamada --- arch/x86/Makefile.um | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/arch/x86/Makefile.um b/arch/x86/Makefile.um index 91085a0..577976b 100644 --- a/arch/x86/Makefile.um +++ b/arch/x86/Makefile.um @@ -26,12 +26,8 @@ cflags-y += $(call cc-option,-mpreferred-stack-boundary=2) # an unresolved reference. cflags-y += -ffreestanding -# Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use -# a lot more stack due to the lack of sharing of stacklots. Also, gcc -# 4.3.0 needs -funit-at-a-time for extern inline functions. -KBUILD_CFLAGS += $(shell if [ $(cc-version) -lt 0400 ] ; then \ - echo $(call cc-option,-fno-unit-at-a-time); \ - else echo $(call cc-option,-funit-at-a-time); fi ;) +# gcc 4.3.0 needs -funit-at-a-time for extern inline functions. +KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time) KBUILD_CFLAGS += $(cflags-y)