summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-01-07 22:00:51 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-01-07 22:00:51 +0000
commitc25efccd5d2ffbfd33715299f91e5d6b4bfe7641 (patch)
tree00b7ed7ec0c41e461d5689a0fe670b5534c15ea3 /lib/libc
parent8f759e142b2785012497ff19ebb85071c95dc65e (diff)
Properly align __infinity - m88k is very strict wrt double alignment.
Fixes - oh what a surprise - bus errors in awk.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/m88k/gen/infinity.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/libc/arch/m88k/gen/infinity.c b/lib/libc/arch/m88k/gen/infinity.c
index cbf940e6551..5043a54ede4 100644
--- a/lib/libc/arch/m88k/gen/infinity.c
+++ b/lib/libc/arch/m88k/gen/infinity.c
@@ -1,12 +1,13 @@
-/* $OpenBSD: infinity.c,v 1.2 2000/03/01 17:31:20 todd Exp $ */
+/* $OpenBSD: infinity.c,v 1.3 2003/01/07 22:00:50 miod Exp $ */
-#ifndef lint
-static char rcsid[] = "$OpenBSD: infinity.c,v 1.2 2000/03/01 17:31:20 todd Exp $";
-#endif /* not lint */
+#if defined(LIBC_SCCS) && !defined(lint)
+static char rcsid[] = "$OpenBSD: infinity.c,v 1.3 2003/01/07 22:00:50 miod Exp $";
+#endif /* LIBC_SCCS and not lint */
/* infinity.c */
#include <math.h>
-/* bytes for +Infinity on 88100 */
-char __infinity[] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 };
+/* bytes for +Infinity on m88k */
+char __infinity[] __attribute__((__aligned__(sizeof(double)))) =
+ { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 };