]> Cypherpunks repositories - gostls13.git/commit
5g: alignment fixes
authorRuss Cox <rsc@golang.org>
Wed, 25 May 2011 14:18:49 +0000 (10:18 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 25 May 2011 14:18:49 +0000 (10:18 -0400)
commit2286471651c826280455e87dff0b2409dc668ce7
tree8d469024258861aed96651bbd045d0ed232a44e7
parent831c6844346cbd405f6c83a7e657dfff0f1cb831
5g: alignment fixes

Makes all.bash work after echo 4 >/proc/cpu/alignment,
which means kill the process on an unaligned access.

The default behavior on DreamPlug/GuruPlug/SheevaPlug
is to simulate an ARMv3 and just let the unaligned accesses
stop at the word boundary, resulting in all kinds of surprises.

Fixes #1240.

R=ken2
CC=golang-dev
https://golang.org/cl/4551064
src/cmd/5g/cgen.c
src/cmd/gc/align.c
src/cmd/gc/gen.c
src/cmd/gc/obj.c