summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-14 14:31:29 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-14 14:31:29 +0000
commit5f6bac4a191655d892ad2f04785647a96337da6b (patch)
treec6c925fe1966814a608e7aeb7fd18b278b4af339 /m4
parentc42cd188bc5df0a33b838a17b5787d1e6b139337 (diff)
stuff
Diffstat (limited to 'm4')
-rw-r--r--m4/align.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/m4/align.m4 b/m4/align.m4
index 256300e37..733afa6d4 100644
--- a/m4/align.m4
+++ b/m4/align.m4
@@ -14,8 +14,12 @@ AC_DEFUN([AC_UNALIGNED_64_ACCESS],
ac_cv_unaligned_64_access,
[
AC_RUN_IFELSE(AC_LANG_PROGRAM([[struct S { int a,b,c;};]],
- [[struct S s = {0,0,0}; long long * p = &s.b;
- long long x = *p; return (int) x*x;]]),
+ [[struct S s = {0,0,0}; long long * p = (long long *) &s.b;
+ void *bp = malloc (50);
+ long long x = *p;
+ long long *be = (long long*) &bp[1];
+ long long y = *be;
+ return (int) x*y;]]),
ac_cv_unaligned_64_access=yes,
ac_cv_unaligned_64_access=no,
ac_cv_unaligned_64_access=no)