GNU extensions on FreeBSD 5.x headers

Mike Barcroft mike at FreeBSD.org
Tue Jun 3 18:19:56 PDT 2003


Pedro F. Giffuni <giffunip at yahoo.com> writes:
> Hi, JIC you haven't noticed, the latest TenDRA CVS logfile
> reports:
> 
> "Unfortunately FreeBSD 5.x uses the GNU C extension
> __attribute__((__aligned__(x))) in a couple of system headers
> (<machine/npx.h>, <machine/signal.h> and <machine/ucontext.h>
> for i386).  To avoid a syntax error __aligned(x) is removed by a
> #define, but programs that use struct sigcontext, struct savexmm
> or mcontext_t probably won't work."

I think those of us who've played with alternative compilers are aware
of this requirement.  I'm not sure there's anything we can do about
it.  If anyone has any tricks to force 128-bit alignment without a
128-bit type in standard C, I'd love to hear it.

Best regards,
Mike Barcroft


More information about the freebsd-standards mailing list