Get __STRICT_ALIGNMENT from <machine/endian.h> and decide upon it, rather
authormiod <miod@openbsd.org>
Wed, 7 May 2014 22:05:48 +0000 (22:05 +0000)
committermiod <miod@openbsd.org>
Wed, 7 May 2014 22:05:48 +0000 (22:05 +0000)
commitd57444e65f65b00f92604d6ba9ec33accea7cc44
tree044cff6a8cb6489ce34dd0d339459e0930b0ba8e
parentf049e49816feff2f6e2ebf81649e4c6048891233
Get __STRICT_ALIGNMENT from <machine/endian.h> and decide upon it, rather
than defining it for not (i386 and amd64 (and sometimes s390)) only.

Compile-time tests remain compile-time tests, and runtime-test remain
runtime-test instead of being converted to compile-time tests, per matthew@'s
explicit demand (rationale: this makes sure the compiler checks your code even
if you won't run it).

No functional change except on s390 (which we don't run on) and vax (which we
run on, but noone cares about)

ok matthew@
18 files changed:
lib/libcrypto/modes/cbc128.c
lib/libcrypto/modes/ccm128.c
lib/libcrypto/modes/cfb128.c
lib/libcrypto/modes/ctr128.c
lib/libcrypto/modes/gcm128.c
lib/libcrypto/modes/modes_lcl.h
lib/libcrypto/modes/ofb128.c
lib/libcrypto/modes/xts128.c
lib/libcrypto/sha/sha512.c
lib/libssl/src/crypto/modes/cbc128.c
lib/libssl/src/crypto/modes/ccm128.c
lib/libssl/src/crypto/modes/cfb128.c
lib/libssl/src/crypto/modes/ctr128.c
lib/libssl/src/crypto/modes/gcm128.c
lib/libssl/src/crypto/modes/modes_lcl.h
lib/libssl/src/crypto/modes/ofb128.c
lib/libssl/src/crypto/modes/xts128.c
lib/libssl/src/crypto/sha/sha512.c