summaryrefslogtreecommitdiff
path: root/lang/moscow_ml/patches/patch-ae
blob: 16d5539cbf12ff6b50643755bcf3cc05389fcfc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ae,v 1.6 2015/12/29 23:34:52 dholland Exp $

Instead of trying to probe whether unaligned accesses work, wire it
down safely.

--- config/auto-aux/align.c.orig	Sat Sep 27 19:00:30 2003
+++ config/auto-aux/align.c	Sat Sep 27 19:53:24 2003
@@ -98,6 +98,14 @@
   long n[1001];
   int speed_aligned, speed_unaligned;
 
+#if 1
+  /* ISO C is very restrictive about unaligned access, and absence of
+   * SIGBUS or SIGSEGV for these tests does not mean that the compiler
+   * will generate the expected code...  So report that unaligned acces
+   * does not work. */
+  exit(1);
+#endif
+
   if (test(access16, (char *) n + 1)) exit(1);
   if (test(access32, (char *) n + 1)) exit(1);
   if (test(access32, (char *) n + 2)) exit(1);