From patchwork Mon Aug 27 05:45:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 145155 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3804359ljw; Sun, 26 Aug 2018 22:46:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaAb41nDM3u0ux8+eK8Zb+1MY0Dx/hmRr1CyKK/i9Owrk9LsJGGnMjkCLkjlvNYTzPDHjQt X-Received: by 2002:a17:902:bc8b:: with SMTP id bb11-v6mr11506251plb.112.1535348804570; Sun, 26 Aug 2018 22:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535348804; cv=none; d=google.com; s=arc-20160816; b=ZtvbRsf176UEcq1mZC8fK6R0x338J1lIs7Xz00ZrrE22IIHhSgMJVVYzI1G+UvYobG /Jybery/QOuhcXrq2qYPzI8u2em4ijDKIQO0d/9nCZmTJHYNh7bJ5ptljZQYHZuKr6dk 0SdpCnTMZ98UCbPZ3YzF8IFBdeO4Nu7AyZlRzKDMwM5ynbXlxrgxTm6ArjnYdqWytvQH kI6W5x1LaG6JcYFULnYVuios6wdeY7EdAmD7uT0685a/V6quev6C1Htno5MXQme7avaT Opd8AFvmvID4rl8hHbI3ZT5u7HCFc16EZycL/5NSxJjZUBCDdhChAN0WhHpTCTeZrKm7 DSLg== 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=bBFKI8kTgDIYQggsG1Fazeu+zZ+2+IMU5IqP43MfnKY=; b=GzYIDkQmepiAVycyVZlx+vIM7ACIprIVqQF76b+yS47x6QKDCFQutwrtUN6LvVHCPO YCN91KE20q1vUi9KIU7SVns2Skl5luTGFaRwgZHawURtIi/hB/wUN3xnvlzoJg5BrFaC 8Ck69YS+7Ipry4qG8s1gcPQFf1pl9Hd3LsGhBq90K6vsIRVtvx/GF0tf7/055YOm0cS7 SN6tvvOCNZSJmQR3UXvcqwPYrpHCR1kkdwVs3lDIISDTG/ZP6rtSBCBbO2bc6RMJ3YBx +FfbdAYtR2GoULbShh+xIvFdntTrYjKnYblo07Lnvj94qJJpdwX6OCzd9NxyzwgiQ6mV wZ9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ZSUyoZnu; 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 bf2-v6si12106250plb.482.2018.08.26.22.46.43; Sun, 26 Aug 2018 22:46:44 -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=ZSUyoZnu; 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 S1726921AbeH0Jbr (ORCPT + 32 others); Mon, 27 Aug 2018 05:31:47 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:25631 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbeH0Jbr (ORCPT ); Mon, 27 Aug 2018 05:31:47 -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 w7R5jOeR006032; Mon, 27 Aug 2018 14:45:24 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w7R5jOeR006032 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1535348725; bh=bBFKI8kTgDIYQggsG1Fazeu+zZ+2+IMU5IqP43MfnKY=; h=From:To:Cc:Subject:Date:From; b=ZSUyoZnuBi9Atx3O4LQOjoWezxXh0VQKKhFyRMsjJMOWMsj3ZdXwQS6qUux+PBOGQ zYy/kQeNImLIgpKZ9KPFM61ctw8Q+lY9B6peEY/eF6WdHl/npLvwCo3/SO0xThtay7 cpJEGcwXwLaG8SWxJ1Ls2LkxsVpPMtfH9wORBfuAaRXjWvMDxBKQ/EKcYxffo1Wdvv LX5MHDr7/+fxYDUgE2i7SdRC63izZtVQYSaCvyKGe26b3639XreBM5MDMAIEEOWniL 69Qx0RiEFecTHVVA9J2Vo5aV2xuQXWzLVyrLR5CRw0FkTc2Pn/5j4DRswnWtNtexI0 9mDpA3ygKBjeQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Ingo Molnar , Thomas Gleixner , x86@kernel.org Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, Michal Marek Subject: [PATCH] x86/build: remove jump label quirk for GCC older than 4.5.2 Date: Mon, 27 Aug 2018 14:45:14 +0900 Message-Id: <1535348714-25457-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. Remove the workaround code. It was the only user of cc-if-fullversion. Remove the macro as well. Signed-off-by: Masahiro Yamada --- arch/x86/Makefile | 12 ------------ scripts/Kbuild.include | 4 ---- 2 files changed, 16 deletions(-) -- 2.7.4 diff --git a/arch/x86/Makefile b/arch/x86/Makefile index d6c10f3..a51d5dc 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -175,18 +175,6 @@ ifndef CC_HAVE_ASM_GOTO $(error Compiler lacks asm-goto support.) endif -# -# Jump labels need '-maccumulate-outgoing-args' for gcc < 4.5.2 to prevent a -# GCC bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46226). There's no way -# to test for this bug at compile-time because the test case needs to execute, -# which is a no-go for cross compilers. So check the GCC version instead. -# -ifdef CONFIG_JUMP_LABEL - ifneq ($(ACCUMULATE_OUTGOING_ARGS), 1) - ACCUMULATE_OUTGOING_ARGS = $(call cc-if-fullversion, -lt, 040502, 1) - endif -endif - ifeq ($(ACCUMULATE_OUTGOING_ARGS), 1) # This compiler flag is not supported by Clang: KBUILD_CFLAGS += $(call cc-option,-maccumulate-outgoing-args,) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index c75413d..ce53639 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -153,10 +153,6 @@ cc-fullversion = $(shell $(CONFIG_SHELL) \ # Usage: EXTRA_CFLAGS += $(call cc-ifversion, -lt, 0402, -O1) cc-ifversion = $(shell [ $(cc-version) $(1) $(2) ] && echo $(3) || echo $(4)) -# cc-if-fullversion -# Usage: EXTRA_CFLAGS += $(call cc-if-fullversion, -lt, 040502, -O1) -cc-if-fullversion = $(shell [ $(cc-fullversion) $(1) $(2) ] && echo $(3) || echo $(4)) - # cc-ldoption # Usage: ldflags += $(call cc-ldoption, -Wl$(comma)--hash-style=both) cc-ldoption = $(call try-run,\