blob: 8d0b9f433fff03a1d91f7f3be57156e5e29453d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ae,v 1.5 2003/09/27 18:33:56 kristerw Exp $
--- 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);
|