summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-01-24 07:46:51 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-01-24 07:46:51 +0000
commit05c64e05e1f50f2e44a355f9b9346448637a55cd (patch)
treece9b1b7fa1f47da86b8f098e6373c0966b5e5d09 /lib
parentee09bc1abfb64e8e2b9c6f1d415d1bca0869fdbe (diff)
Add alignment on this ugly array.
Fixes the unaligned accesses in awk.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/alpha/gen/infinity.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/arch/alpha/gen/infinity.c b/lib/libc/arch/alpha/gen/infinity.c
index 7548340c49e..a179457fa4f 100644
--- a/lib/libc/arch/alpha/gen/infinity.c
+++ b/lib/libc/arch/alpha/gen/infinity.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: infinity.c,v 1.3 1996/11/13 21:20:18 niklas Exp $ */
+/* $OpenBSD: infinity.c,v 1.4 2001/01/24 07:46:50 art Exp $ */
/* $NetBSD: infinity.c,v 1.1 1995/02/10 17:50:23 cgd Exp $ */
/*
@@ -29,10 +29,11 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: infinity.c,v 1.3 1996/11/13 21:20:18 niklas Exp $";
+static char *rcsid = "$OpenBSD: infinity.c,v 1.4 2001/01/24 07:46:50 art Exp $";
#endif /* LIBC_SCCS and not lint */
#include <math.h>
/* bytes for +Infinity on an Alpha (IEEE double format) */
-char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
+char __infinity[] __attribute__((__aligned__(sizeof(double)))) =
+ { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };