[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Do not use unaligned access on some more archs



Update of /home/or/cvsroot/tor
In directory moria:/tmp/cvs-serv10870

Modified Files:
	configure.in 
Log Message:
Do not use unaligned access on some more archs

Index: configure.in
===================================================================
RCS file: /home/or/cvsroot/tor/configure.in,v
retrieving revision 1.232
retrieving revision 1.233
diff -u -d -r1.232 -r1.233
--- configure.in	10 Sep 2005 03:41:37 -0000	1.232
+++ configure.in	10 Sep 2005 20:44:05 -0000	1.233
@@ -368,6 +368,14 @@
  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(