Re: Question on BIGGEST_ALIGNMENT in GCC on NetBSD/m68k

Jason Thorpe <[email protected]> Mon, 26 May 2025 11:25:05 -0700
Newsgroups gmane.linux.ports.m68k,gmane.os.netbsd.ports.m68k,gmane.linux.debian.ports.68k
Message-ID <[email protected]>
> On May 26, 2025, at 8:05 AM, John Paul Adrian Glaubitz <[email protected]> wrote:
> 
> Now I'm wondering whether why some types on NetBSD such as double have 8 bytes
> alignment on a 32-bit system. Does anyone know the reasoning for that?

Because that’s what is specified in the System V ABI for m68k.

     https://m680x0.github.io/ref/sysv-m68k-abi-part1.pdf

See Figure 3-1.  “double” and “long double” are explicitly 8-byte aligned.

-- thorpej