Michał Górny wrote:
> On Mon, 2021-02-22 at 19:27 +0000, Jessica Clarke wrote:
> > Example: 16-bit m68k
> > no, it's a 32bit platform with extra alignment requirements.
> > Actually, fewer. Most architectures have alignof(x) == sizeof(x) for
> > all the primitive
Barry Scott wrote:
> > On 22 Feb 2021, at 12:40, Michał Górny mgo...@gentoo.org wrote:
> > I'm talking about 16-bit memory alignment which
> > causes SIGBUS if it's
> > not respected on m68k.
> > I don't understand why you consider this to be a problem. After all,
> > x86 has stronger (32-bit) ali
> > Example: 16-bit m68k
> no, it's a 32bit platform with extra alignment requirements.
Actually, fewer. Most architectures have alignof(x) == sizeof(x) for all the
primitive types, but m68k is more relaxed and caps alignof(x) at 2. This means
that assert((p & sizeof(long)) == 0) is too strict,