[PATCH] ARM: drop cc-option fallbacks for architecture selection
Sebastian Andrzej Siewior
sebastian at breakpoint.cc
Mon Oct 18 12:10:58 PDT 2021
On 2021-10-18 16:07:12 [+0200], Arnd Bergmann wrote:
…
> Passing e.g. -march=armv6k+fp in place of -march=armv6k would avoid this
> issue, but the fallback logic is already broken because all supported
> compilers (gcc-5 and higher) are much more recent than these options,
> and building with -march=armv5t as a fallback no longer works.
>
> The best way forward that I see is to just remove all the checks, which
> also has the nice side-effect of slightly improving the startup time for
> 'make'.
>
…
> This should be safe to apply on all stable kernels, and will be required
> in order to keep building them with gcc-11 and higher.
Yes, please.
> Reported-by: Antonio Terceiro <antonio.terceiro at linaro.org>
> Reported-by: Naresh Kamboju <naresh.kamboju at linaro.org>
> Reported-by: Sebastian Andrzej Siewior <sebastian at breakpoint.cc>
> Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996419
> Cc: Matthias Klose <doko at debian.org>
> Cc: stable at vger.kernel.org
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
Reviewed-by: Sebastian Andrzej Siewior <sebastian at breakpoint.cc>
Just booted Debian 9/ Stretch which ships
gcc version 6.3.0 20170516 (Debian 6.3.0-18)
to confirm that it fails to compile with the armv5t fallback.
Sebastian
More information about the linux-arm-kernel
mailing list