[head tinderbox] failure on mips/mips

Marcel Moolenaar xcllnt at mac.com
Tue Feb 17 22:51:13 PST 2009


On Feb 17, 2009, at 10:42 PM, M. Warner Losh wrote:

> : A safer approach is to mark ifi_epoch as packed or put differently,
> : define time_t as a 64-bit integral with 32-bit alignment. This can
> : avoid a lot of unexpected internal padding as well (e.g. struct
> : timeval).
>
> Marking it as packed won't help.  If the elements aren't properly
> aligned, gcc won't access multi-word entities properly.  It might
> eliminate the warning, but it will break at runtime.

But GCC will use a pair of 32-bit loads and/or stores to
access the 64-bit integral in that case. There should be
no runtime breakage. You only do this for n32 of course.

-- 
Marcel Moolenaar
xcllnt at mac.com





More information about the freebsd-current mailing list