Re: Preliminary results - was: Re: Question on BIGGEST_ALIGNMENT in GCC on NetBSD/m68k

Geert Uytterhoeven <[email protected]> Mon, 2 Feb 2026 11:53:51 +0100
Newsgroups gmane.os.netbsd.ports.m68k,gmane.linux.debian.ports.68k,gmane.linux.ports.m68k
Message-ID <CAMuHMdUjOw2VJTNM97+8iiG6uB5_2XuksSxF=1AMWNR4WsyD0A@mail.gmail.com>
Hi Arnd,

On Wed, 7 Jan 2026 at 09:20, Arnd Bergmann <[email protected]> wrote:
> On Tue, Jan 6, 2026, at 20:31, Geert Uytterhoeven wrote:
> > On Tue, 6 Jan 2026 at 16:38, Arnd Bergmann <[email protected]> wrote:
> >> On Tue, Jan 6, 2026, at 14:40, John Paul Adrian Glaubitz wrote:
> >> > On Tue, 2026-01-06 at 14:34 +0100, Kolbj=C3=B8rn Barmen wrote:
> >> The diffstat is
> >>
> >>  407 files changed, 2433 insertions(+), 754 deletions(-)
> >>
> >> and I think this touches around 1500 structures, though
> >> most files only have a single one.
> >
> > Thanks, this seems to work fine for atari_defconfig, and generates
> > the exact same code as before.
>
> Ok, good. The more interesting bit then is what happens when
> you actually turn on -malign-int for the kernel itself. There

It fails to build due to wrong and missing annotations in union __sifields:

arch/m68k/kernel/signal.c:621:9: note: in expansion of macro =E2=80=98BUILD=
_BUG_ON=E2=80=99
  621 |         BUILD_BUG_ON(offsetof(siginfo_t, si_lower) !=3D 0x12);

which is probably the same issue Kolla was seeing.

Gr{oetje,eeting}s,

                        Geert

--=20
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k=
.org

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