40b388e134
manages to do this without receiving a SIGBUS... Make the test always return that unalign access is forbidden. This makes the package work on ARM. PKGREVISION++
18 lines
660 B
Text
18 lines
660 B
Text
$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);
|