From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43DE2C433ED for ; Thu, 8 Apr 2021 04:39:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 044C56101E for ; Thu, 8 Apr 2021 04:39:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229584AbhDHEjR (ORCPT ); Thu, 8 Apr 2021 00:39:17 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:22551 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbhDHEjQ (ORCPT ); Thu, 8 Apr 2021 00:39:16 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4FG7nf67X2z9vBnX; Thu, 8 Apr 2021 06:39:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 7Ulh6JSdMufP; Thu, 8 Apr 2021 06:39:02 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4FG7nf4Vgwz9vBnS; Thu, 8 Apr 2021 06:39:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6568E8B7BE; Thu, 8 Apr 2021 06:39:03 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 3uhCu6FeRQ6b; Thu, 8 Apr 2021 06:39:03 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id E9BFB8B75F; Thu, 8 Apr 2021 06:39:02 +0200 (CEST) Subject: Re: [PATCH] powerpc: remove old workaround for GCC < 4.9 To: Masahiro Yamada , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org References: <20210408030534.196347-1-masahiroy@kernel.org> From: Christophe Leroy Message-ID: Date: Thu, 8 Apr 2021 06:39:00 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210408030534.196347-1-masahiroy@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 08/04/2021 à 05:05, Masahiro Yamada a écrit : > According to Documentation/process/changes.rst, the minimum supported > GCC version is 4.9. > > This workaround is dead code. This workaround is already on the way out, see https://github.com/linuxppc/linux/commit/802b5560393423166e436c7914b565f3cda9e6b9 > > Signed-off-by: Masahiro Yamada > --- > > arch/powerpc/Makefile | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index 5f8544cf724a..32dd693b4e42 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -181,12 +181,6 @@ CC_FLAGS_FTRACE := -pg > ifdef CONFIG_MPROFILE_KERNEL > CC_FLAGS_FTRACE += -mprofile-kernel > endif > -# Work around gcc code-gen bugs with -pg / -fno-omit-frame-pointer in gcc <= 4.8 > -# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44199 > -# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52828 > -ifndef CONFIG_CC_IS_CLANG > -CC_FLAGS_FTRACE += $(call cc-ifversion, -lt, 0409, -mno-sched-epilog) > -endif > endif > > CFLAGS-$(CONFIG_TARGET_CPU_BOOL) += $(call cc-option,-mcpu=$(CONFIG_TARGET_CPU)) >