lkml.org 
[lkml]   [2021]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ARM: drop cc-option fallbacks for architecture selection
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@linaro.org>
> Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
> Reported-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
> Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996419
> Cc: Matthias Klose <doko@debian.org>
> Cc: stable@vger.kernel.org
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Reviewed-by: Sebastian Andrzej Siewior <sebastian@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

\
 
 \ /
  Last update: 2021-10-18 21:12    [W:0.105 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site