Thread (19 messages) 19 messages, 9 authors, 2021-02-27

Re: [PATCH] compiler.h: Raise minimum version of GCC to 5.1 for arm64

flat view

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2021-01-15 23:25:29
Also in: lkml

On Thu, Jan 14, 2021 at 4:30 PM Joe Perches [off-list ref] wrote:
KASAN v5 instead of all the old versions
gcc 7.1 supports fallthrough.
Considering that most people won't even enable KASAN, I think that's
not a huge reason to then force people to potentially upgrade their
compilers.

That said, I do think that it might be good to just try to standardize
on the KASAN v5 code - but that could easily be done by simply making
KASAN depend as a feature on having a newer compiler version.

So the KASAN option itself could just have something like

       depends on !CC_IS_GCC || GCC_VERSION >= 70000

in it, which would allow us to just say "only v5 need apply".

As to "fallthrough", I think it's more than enough that lots of people
build with compilers that support it, and then any warnings they see
will be fixed. No need to force upgrades - it doesn't buy kernel
developers anything.

          Linus

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help