summaryrefslogtreecommitdiffstats
path: root/usr.bin/calendar
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2011-07-11 20:43:59 +0000
committermarius <marius@FreeBSD.org>2011-07-11 20:43:59 +0000
commit9acc72f0dfe546de8d53ce78c92398a1755a5b8e (patch)
treecae25c4a5921aad9438703f1d608bccfc3878112 /usr.bin/calendar
parent85e4624c620e87f5a46375ac995df71811b5a2dd (diff)
downloadFreeBSD-src-9acc72f0dfe546de8d53ce78c92398a1755a5b8e.zip
FreeBSD-src-9acc72f0dfe546de8d53ce78c92398a1755a5b8e.tar.gz
Since r219452 the alignment of __dmadat has changed, revealing that fsread()
bogusly casts its contents around causing alignment faults on sparc64 and most likely also on at least powerpc. Fix this by copying the contents bytewise instead as partly already done here. Solving this the right way costs some space, i.e. 148 bytes with GCC and 16 bytes with clang on x86 there are still some bytes left there though, and an acceptable hack which tricks the compiler into only using a 2-byte alignment instead of the native one when accessing the contents turned out to even take up more space that.
Diffstat (limited to 'usr.bin/calendar')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud