Re: [PATCH] Raise the minimum GCC version to 5.2

From: Ali Kaasinen
Date: Sun May 02 2021 - 17:09:42 EST


On 02/05/2021 23.32, Segher Boessenkool wrote:

On Sun, May 02, 2021 at 01:00:28PM -0700, Joe Perches wrote:
On Sun, 2021-05-02 at 13:30 -0500, Segher Boessenkool wrote:
On Sat, May 01, 2021 at 07:41:53PM -0700, Joe Perches wrote:
Why not raise the minimum gcc compiler version even higher?
On Sun, 2021-05-02 at 13:37 -0500, Segher Boessenkool wrote:
Everyone should always use an as new release as practical
[]

The latest GCC 5 release is only three and a half years old.
You argue slightly against yourself here.
I don't?

Yes, it's mostly a question of practicality vs latest.

clang requires a _very_ recent version.
gcc _could_ require a later version.
Perhaps 8 might be best as that has a __diag warning control mechanism.
I have no idea what you mean?

gcc 8.1 is now 3 years old today.
And there will be a new GCC 8 release very soon now!

The point is, you inconvenience users if you require a compiler version
they do not already have. Five years might be fine, but three years is
not.


Segher

Users & especially devs should upgrade then. 3 years of not updating your compiler - if you regularly build the kernel - seems nonsensical.


Ali