diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/align.m4 | 8 |
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], | |||
14 | ac_cv_unaligned_64_access, | 14 | ac_cv_unaligned_64_access, |
15 | [ | 15 | [ |
16 | AC_RUN_IFELSE(AC_LANG_PROGRAM([[struct S { int a,b,c;};]], | 16 | AC_RUN_IFELSE(AC_LANG_PROGRAM([[struct S { int a,b,c;};]], |
17 | [[struct S s = {0,0,0}; long long * p = &s.b; | 17 | [[struct S s = {0,0,0}; long long * p = (long long *) &s.b; |
18 | long long x = *p; return (int) x*x;]]), | 18 | void *bp = malloc (50); |
19 | long long x = *p; | ||
20 | long long *be = (long long*) &bp[1]; | ||
21 | long long y = *be; | ||
22 | return (int) x*y;]]), | ||
19 | ac_cv_unaligned_64_access=yes, | 23 | ac_cv_unaligned_64_access=yes, |
20 | ac_cv_unaligned_64_access=no, | 24 | ac_cv_unaligned_64_access=no, |
21 | ac_cv_unaligned_64_access=no) | 25 | ac_cv_unaligned_64_access=no) |