diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2003-01-29 15:02:03 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2003-01-29 15:02:03 +0000 |
commit | 874fc392ee707c2600369882cacd53fbc870661b (patch) | |
tree | 9bc87fbde6d5a09cdbbb365514d143d497528641 /lib/libc | |
parent | 1cc1157ed6b928db3216689c23e52f5828a084a2 (diff) |
Align this char array accessed as double, for paranoia reasons.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/arch/powerpc/gen/infinity.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/arch/powerpc/gen/infinity.c b/lib/libc/arch/powerpc/gen/infinity.c index 567603f4085..413c27b9fd7 100644 --- a/lib/libc/arch/powerpc/gen/infinity.c +++ b/lib/libc/arch/powerpc/gen/infinity.c @@ -1,7 +1,7 @@ -/* $OpenBSD: infinity.c,v 1.3 2001/08/25 15:20:15 drahn Exp $ */ +/* $OpenBSD: infinity.c,v 1.4 2003/01/29 15:02:02 drahn Exp $ */ #ifndef lint -static char rcsid[] = "$OpenBSD: infinity.c,v 1.3 2001/08/25 15:20:15 drahn Exp $"; +static char rcsid[] = "$OpenBSD: infinity.c,v 1.4 2003/01/29 15:02:02 drahn Exp $"; #endif /* not lint */ /* infinity.c */ @@ -9,4 +9,5 @@ static char rcsid[] = "$OpenBSD: infinity.c,v 1.3 2001/08/25 15:20:15 drahn Exp #include <math.h> /* bytes for +Infinity on a PowerPC */ -char __infinity[] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 }; +char __infinity[] __attribute__((__aligned__(sizeof(double)))) = + { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 }; |