Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2006 13:10:21 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        ppc@FreeBSD.org
Subject:   Definition of _ALIGNBYTES
Message-ID:  <CF6F2FC3-73E4-4A29-AA5A-0B85CE89521C@xcllnt.net>

index | next in thread | raw e-mail

All,

In /usr/include/sys/param.h (or src/sys/powerpc/include/param.h),
_ALIGNBYTES is defined as (sizeof(int) - 1), or 3. It is supposed
to represent the mask used by ALIGN() to yield an alignment
suitable for all types. The alignment of the double, long long,
and long double types is 8, which would imply that _ALIGNBYTES
should be 7. All platforms, except i386, have this "right".

I don't know how vital this definition is, but I do know that
increasing it yields an ABI breakage (I noticed that ssh(1)
stopped working). The ABI breakage is not severe enough that
you cannot increase and decrease it without being able to do a
buildworld.

My question: should we bump it up while powerpc is still tier 2?

-- 
  Marcel Moolenaar         USPA: A-39004          marcel@xcllnt.net




home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CF6F2FC3-73E4-4A29-AA5A-0B85CE89521C>