Re: [PATCH] m68k: Enable dead code elimination

From: Geert Uytterhoeven
Date: Sun Jun 08 2025 - 05:36:40 EST


Hi Finn,

On Sun, 8 Jun 2025 at 10:32, Finn Thain <fthain@xxxxxxxxxxxxxx> wrote:
> On Tue, 29 Apr 2025, Greg Ungerer wrote:
> > On 29/4/25 10:04, Daniel Palmer wrote:
> > > On Mon, 28 Apr 2025 at 08:37, Greg Ungerer <gerg@xxxxxxxxxxxxxx> wrote:
> > >> I notice that some other architectures (arm and powerpc) have version
> > >> checks on gcc or ld in the config. Do you know if there is any
> > >> version limitations for m68k here?
> > >
> > > I'm not sure about that. I'll try to work out why they have the checks
> > > and see if that affects m68k too. I'm using GCC13 so probably new
> > > enough that most things work.
> >
> > FWIW, the oldest toolchain I had lying around was based on gcc 8.3.0 and
> > binutils 2.32. This patch worked fine on that.
> >
>
> I was going to try the patch with gcc-6.4.0 but apparently that's too old
> to build stock linux-6.15 (see below). Documentation/admin-guide/README.rst
> says I should have "at least gcc 5.1".

Someone forgot to update that file...
Anyway, it has just been increased again for v6.16-rc1 by Arnd in
commit 118c40b7b50340bf ("kbuild: require gcc-8 and binutils-2.30").

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds