Re: [PATCH v2 0/3] Inline helpers into Rust without full LTO
Geert Uytterhoeven <[email protected]>
| Newsgroups | gmane.linux.uml.devel,gmane.linux.ports.arm.kernel,gmane.linux.kbuild.devel,gmane.linux.kernel,gmane.linux.kernel.mm,gmane.linux.kernel.rust |
|---|---|
| Message-ID | <CAMuHMdU-+dm83TVttfarT7QxE5ySpQ2LJ_k6oFKMWRcbaWcCdA@mail.gmail.com> |
Hi Arnd, On Fri, 27 Mar 2026 at 10:02, Arnd Bergmann <[email protected]> wrote: > On Fri, Mar 27, 2026, at 08:56, Geert Uytterhoeven wrote: > >> I noticed a similar issue with m68k-linux, which has a bitfield > >> alignment different from anything else on gcc, but uses the normal > >> behavior on clang. > > > > Ugh, I wasn't aware of that. Adrian, did you know? > > To clarify, this illustrates what I mean here: > > echo 'struct { short a : 3; short b :15; short c :14; } x; int y = sizeof(x);' | m68k-linux-gcc -xc - -S -o- > > this produces '4' on m68k-linux-gcc, but '6' everywhere else. I originally > thought this was related to this 2009 change in both compilers Oh, now I remember. AFAIK (holding wood and a rabbit leg) we don't have any bitfield members spanning multiple base type instances in the kernel. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] 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