From patchwork Mon Aug 27 03:07:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 145152 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3704884ljw; Sun, 26 Aug 2018 20:08:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaKZVodzsI0UmJQYMouaKBrP/F64OhWmjQM6yhSKEDrLA3I10mDEYiWBx+2yoM0F0KXqEiU X-Received: by 2002:a63:f309:: with SMTP id l9-v6mr10216665pgh.369.1535339313685; Sun, 26 Aug 2018 20:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535339313; cv=none; d=google.com; s=arc-20160816; b=Kj2NTRrsQjUFXnD68bGSfJlM0pFO0ezNSzvXJ29YTW6f9rAQF+hc7nGWbweD3XX3hf 0ACxcQ7WdZdMFjoOOi5uDLkhN7zSxsYWpAu1+jaevAZy716bUEM9hgWQFFoa0WLchRI7 1O7rSYKKjIBO6WL2YhVJPTCO4LbhjzKlmz/FOvVIp/FWI7OT91bHAJH+C80W5Woy+WWu FDbtiyU6OMTLl4GTAjISVaYLVifPn1u9bKYtO/m7jjHKiBnM41pAL6Z2oCnhba8X2Q/w k6gulSHVIcoGJ8sT5awLgHhkdrsievEiAXWHqWg6E/pSwxBkzPqO6LLkQuZmLdDivl1N MWZQ== 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=B8xkQBFo4yxnOb4Y3sjXVbGiKUL+hoOmtpDnugZP2zE=; b=f7T1NcEfjrfH5UHrqWjmGua013evn7u1BTb9Njzu44b60skT84nmVG0YYZCrx7zbNe A25Cy1s7WhRcBw0bLybZha7t8HlobV/3A8CJ3+2bHL7ZdtnQvdRR2jt2/NfO841vgMcX LeOT/i6VbY8mhUVfRvD5Uz9WcqdKh9bSUZ2Rf5+awn85sf36DOKccCzIAHBztK3WkYsm G56/q2PX59ItTIdFGWWJL5t+zegAChIfJTzXG/1pmVTFSaPSJlLwImUj4vVcKhHC1dMG 29OC0nolR9nYxSxsa203v+ICuERmQgJXzcrTRqU/uKERYAVKX8VmHJvs67Z/lnWZv6UX TRsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Zk9aKQ0s; 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 m64-v6si14790297pfc.17.2018.08.26.20.08.33; Sun, 26 Aug 2018 20:08:33 -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=Zk9aKQ0s; 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 S1726902AbeH0GxL (ORCPT + 32 others); Mon, 27 Aug 2018 02:53:11 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:58404 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbeH0GxL (ORCPT ); Mon, 27 Aug 2018 02:53:11 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id w7R37dt8005354; Mon, 27 Aug 2018 12:07:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com w7R37dt8005354 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1535339259; bh=B8xkQBFo4yxnOb4Y3sjXVbGiKUL+hoOmtpDnugZP2zE=; h=From:To:Cc:Subject:Date:From; b=Zk9aKQ0s3PA35RbBGxHz7szuudocpUrzmHfhZDcoRxLCm0YmhQ3hwYOHYFNEO16tv ztv3bTajEhvYVM7Fy08ev6PgFKC7d2L+doW/11e93a/wUJqYI3HdX7mcnQl7ONHADY A7uFqc3bLyB/MnGuY4euHMOruHf3MQiwRjvpnyScXuTnKeCzVz3ckCz0P9kbU5PSY/ Ghz4bUP+flujLzVBJLogVGdp8D+k6rVaU8qqtcuI2zADQF4lkGLrqESMUL+RYEfzhr LhH41w8pzMxo/OVWfHmyEx3xdIahknt6Bbksx+hioS33uQ7xnnVMlXyRZxymlqVFh1 HBz+A1UlnkiHA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Vineet Gupta , linux-snps-arc@lists.infradead.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] arc: remove redundant GCC version checks Date: Mon, 27 Aug 2018 12:07:37 +0900 Message-Id: <1535339257-17620-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. With GCC >= 4.6 assumed, 'upto_gcc44' is empty, 'atleast_gcc44' is y. Signed-off-by: Masahiro Yamada --- arch/arc/Makefile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) -- 2.7.4 diff --git a/arch/arc/Makefile b/arch/arc/Makefile index fb02619..99cce77 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -43,10 +43,7 @@ ifdef CONFIG_ARC_CURR_IN_REG LINUXINCLUDE += -include ${src}/arch/arc/include/asm/current.h endif -upto_gcc44 := $(call cc-ifversion, -le, 0404, y) -atleast_gcc44 := $(call cc-ifversion, -ge, 0404, y) - -cflags-$(atleast_gcc44) += -fsection-anchors +cflags-y += -fsection-anchors cflags-$(CONFIG_ARC_HAS_LLSC) += -mlock cflags-$(CONFIG_ARC_HAS_SWAPE) += -mswape @@ -82,11 +79,6 @@ cflags-$(disable_small_data) += -mno-sdata -fcall-used-gp cflags-$(CONFIG_CPU_BIG_ENDIAN) += -mbig-endian ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB -# STAR 9000518362: (fixed with binutils shipping with gcc 4.8) -# arc-linux-uclibc-ld (buildroot) or arceb-elf32-ld (EZChip) don't accept -# --build-id w/o "-marclinux". Default arc-elf32-ld is OK -ldflags-$(upto_gcc44) += -marclinux - LIBGCC := $(shell $(CC) $(cflags-y) --print-libgcc-file-name) # Modules with short calls might break for calls into builtin-kernel