Only select efficient unaligned accesses for x86 and powerpc
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 25 Sep 2011 03:39:26 +0000 (23:39 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 25 Sep 2011 03:39:26 +0000 (23:39 -0400)
This is why the Linux kernel does at this point.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac

index 9002159344b3bc089ed81b70fbcc5815157c2f87..908b7de6f29f7bd69b07adb995236fb8e6f1b431 100644 (file)
@@ -101,11 +101,11 @@ changequote([,])dnl
        x86_64) LIBFORMAT="elf64-x86-64" ;;
        powerpc) LIBFORMAT="elf32-powerpc" ;;
        ppc64) LIBFORMAT="elf64-powerpc" ;;
        x86_64) LIBFORMAT="elf64-x86-64" ;;
        powerpc) LIBFORMAT="elf32-powerpc" ;;
        ppc64) LIBFORMAT="elf64-powerpc" ;;
-       s390) LIBFORMAT="elf32-s390" ;;
-       s390x) LIBFORMAT="elf64-s390" ;;
+       s390) LIBFORMAT="elf32-s390"; NO_UNALIGNED_ACCESS=1 ;;
+       s390x) LIBFORMAT="elf64-s390"; NO_UNALIGNED_ACCESS=1 ;;
         armv5) LIBFORMAT="elf32-littlearm"; NO_UNALIGNED_ACCESS=1 ;;
         armv5) LIBFORMAT="elf32-littlearm"; NO_UNALIGNED_ACCESS=1 ;;
-       arm) LIBFORMAT="elf32-littlearm" ;;
-       mips*) LIBFORMAT="" ;;
+       arm) LIBFORMAT="elf32-littlearm"; NO_UNALIGNED_ACCESS=1 ;;
+       mips*) LIBFORMAT=""; NO_UNALIGNED_ACCESS=1;;
        *) AC_MSG_ERROR([unable to detect library format (unsupported architecture ($host_cpu)?)]) ;;
 esac
 AC_SUBST(LIBFORMAT)
        *) AC_MSG_ERROR([unable to detect library format (unsupported architecture ($host_cpu)?)]) ;;
 esac
 AC_SUBST(LIBFORMAT)
This page took 0.027807 seconds and 4 git commands to generate.