瀏覽代碼

Do not use unaligned access on some more archs

svn:r4992
Peter Palfrader 20 年之前
父節點
當前提交
0ceab199b0
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      configure.in

+ 8 - 0
configure.in

@@ -368,6 +368,14 @@ case $host in
  ia64-*-* | arm-*-* | sparc-*-* )
     tor_cv_unaligned_ok=no
     ;;
+ # On the following architectures unaligned access works, but is not done in
+ # hardware.  This means that when you try to do unaligned access the kernel
+ # gets to sort out an exception and then work around to somehow make your
+ # reqest work, which is quite expensive.  Therefore it's probably better to
+ # not even do it.
+ alpha-*-* | mips-*-* | mipsel-*-* )
+    tor_cv_unaligned_ok=no
+    ;;
  *)
 AC_CACHE_CHECK([whether unaligned int access is allowed], tor_cv_unaligned_ok,
 [AC_RUN_IFELSE([AC_LANG_SOURCE(