Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules

From: Linus Torvalds
Date: Wed Mar 03 2021 - 16:29:36 EST


On Wed, Mar 3, 2021 at 11:15 AM Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
>
> Adding Linus, who indicated in another thread that we shouldn't force
> exact GCC versions because there's no technical reason to do so.

I do not believe we should recompile everything just because the gcc
version changes.

But gcc _plugins_ certainly should depend on the kernel version.

Very few people should be enabling the gcc plugins in the first place.
Honestly, most of them are bad, and the people who really care about
those things have already moved to clang which does the important
parts natively without the need for a plugin. I'm personally waiting
for the day when we can just say "let's remove them". But in the
meantime, making the plugins depend on the gcc version some way is
certainly better than not doing so.

Linus