Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2926662pxy; Mon, 3 May 2021 11:03:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYfvYfhWcQWCHO5LD5IdY7N1NIe6LvHXt1hNAPTkbkEN0vdc4hVhZDWtGpb+s9ZJ0VClOf X-Received: by 2002:a63:8f17:: with SMTP id n23mr11624457pgd.82.1620064996182; Mon, 03 May 2021 11:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620064996; cv=none; d=google.com; s=arc-20160816; b=dGM9zByfwIhmGOzjcvrZBQQl8OVjmRX99Tfp85qCsm8dzrixvAqvdaNEIxQQHJxku3 4MCbFTtr1HNnEQJ2+IoN78Opk6vZj+3g7iFFzAn6sYW3Epg5uJILnTIXERmOzX8/OyYf u5bUWIATWT5hE7dUYLP+SyyssXb9zduTvaI4tcoJdbX3hOZ4JR7BZQ66sNZtlXNXTJFO 9CfLZIpsTT+gCxA0Ggje9V1ORuCIQdgVtMo0LPtU7SacO+Yp12EOuSYI6MNBg933tTed oxuA507l29ta5vJ0O8sSV+8uCv6lb8tGN/Ja8gu1k+dPP7IOaT+RFbF/kg1Epw7JHwkC eUpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:reply-to:message-id :subject:cc:to:from:date; bh=JpPokS6TxqFqGt0w7z5Rh6fqphoICGx/m9MkctLQ3Gg=; b=znJqKY6ZAlxM5g+FEglegXCXHfkhmgWu9Z9aqaRmDuz7D7mBCBrlotKIQA4OhpyZzK Xamsvly/wfUhFvi6qtLoRi0Q5jDSGcCNqNBOWGZfk9jEwAXTnpA4LHi/+nO249r9epxB JrBewD6WCwoYUfOAqGYgV69caISJ4nOk17WD/dgDj7ft4zFR6hkLOtvG+NwWuerNbg1D 44Lg7Ay0EuMuzGhDbhJn88k42aZ1KQbU/VHiGMvl7CEVLcHdSHxbtIvs34lQA5wzf1GV 0dUzwtCaB5exn/a+aB6smKnYUGbvfHYb/kVJE0pr44VxsetXk1a88z86VbaKGSxXTfL9 gr6w== 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 lp2si15524284pjb.138.2021.05.03.11.02.49; Mon, 03 May 2021 11:03:16 -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 S233520AbhECMbB (ORCPT + 99 others); Mon, 3 May 2021 08:31:01 -0400 Received: from mx2.suse.de ([195.135.220.15]:47782 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229907AbhECMa6 (ORCPT ); Mon, 3 May 2021 08:30:58 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 52E8DAD22; Mon, 3 May 2021 12:30:04 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id C7B22DA733; Mon, 3 May 2021 14:27:36 +0200 (CEST) Date: Mon, 3 May 2021 14:27:36 +0200 From: David Sterba To: Masahiro Yamada Cc: linux-kernel@vger.kernel.org, Linus Torvalds , linux-kbuild@vger.kernel.org, Arnd Bergmann , Greg Kroah-Hartman , Will Deacon , Miguel Ojeda , Catalin Marinas , Albert Ou , Benjamin Herrenschmidt , Jonathan Corbet , Michael Ellerman , Palmer Dabbelt , Paul Mackerras , Paul Walmsley , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] Raise the minimum GCC version to 5.2 Message-ID: <20210503122736.GG7604@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Masahiro Yamada , linux-kernel@vger.kernel.org, Linus Torvalds , linux-kbuild@vger.kernel.org, Arnd Bergmann , Greg Kroah-Hartman , Will Deacon , Miguel Ojeda , Catalin Marinas , Albert Ou , Benjamin Herrenschmidt , Jonathan Corbet , Michael Ellerman , Palmer Dabbelt , Paul Mackerras , Paul Walmsley , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org References: <20210501151538.145449-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210501151538.145449-1-masahiroy@kernel.org> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 02, 2021 at 12:15:38AM +0900, Masahiro Yamada wrote: > The current minimum GCC version is 4.9 except ARCH=arm64 requiring > GCC 5.1. > > When we discussed last time, we agreed to raise the minimum GCC version > to 5.1 globally. [1] There are still a lot of comment references to old gcc releases with workarounds or bugfixes, a quick serarch: $ git grep -in 'gcc.*[234]\.x' arch/alpha/include/asm/string.h:30:/* For gcc 3.x, we cannot have the inline function named "memset" because arch/arc/include/asm/checksum.h:9: * -gcc 4.4.x broke networking. Alias analysis needed to be primed. arch/arm/Makefile:127:# Need -Uarm for gcc < 3.x arch/ia64/lib/memcpy_mck.S:535: * Due to lack of local tag support in gcc 2.x assembler, it is not clear which arch/mips/include/asm/page.h:210: * also affect MIPS so we keep this one until GCC 3.x has been retired arch/x86/include/asm/page.h:53: * remove this Voodoo magic stuff. (i.e. once gcc3.x is deprecated) arch/x86/kvm/x86.c:5569: * This union makes it completely explicit to gcc-3.x arch/x86/mm/pgtable.c:302: if (PREALLOCATED_PMDS == 0) /* Work around gcc-3.4.x bug */ drivers/net/ethernet/renesas/sh_eth.c:51: * that warning from W=1 builds. GCC has supported this option since 4.2.X, but lib/xz/xz_dec_lzma2.c:494: * of the code generated by GCC 3.x decreases 10-15 %. (GCC 4.3 doesn't care, lib/xz/xz_dec_lzma2.c:495: * and it generates 10-20 % faster code than GCC 3.x from this file anyway.) net/core/skbuff.c:32: * The functions in this file will not compile correctly with gcc 2.4.x This misses version-specific quirks, but the following returns 216 results and not all are problematic (eg. just referring to gcc for some historical reason) so I'm not pasting it here. $ git grep -in 'gcc.*[234]\.[0-9]' ...