]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
pcre: disable jit on powerpc64 2653/head
authorVictor Julien <victor@inliniac.net>
Thu, 6 Apr 2017 11:05:35 +0000 (13:05 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 6 Apr 2017 11:05:35 +0000 (13:05 +0200)
It appears that both using gcc and clang something gets misoptimised
around pcre's jit. So disable jit for now.

configure.ac

index 57e7253a9baf7eb600861e837557e4030fd45b78..91f4925d9d9acb84e4e0564d10336d96a79b1317 100644 (file)
         [ pcre_jit_available=yes ], [ pcre_jit_available=no ]
         )
 
-    # bug 1693, libpcre 8.35 is broken and debian jessie is still using that
-    if test "$libpcre_buggy_found" = "yes"; then
-        pcre_jit_available="no, libpcre 8.35 blacklisted"
-    fi
+    case $host in
+        *powerpc64*)
+            # on powerpc64, both gcc and clang lead to SIGILL in
+            # unittests when jit is enabled.
+            pcre_jit_available="no, pcre jit disabled for powerpc64"
+        ;;
+        *)
+            # bug 1693, libpcre 8.35 is broken and debian jessie is still using that
+            if test "$libpcre_buggy_found" = "yes"; then
+                pcre_jit_available="no, libpcre 8.35 blacklisted"
+            fi
+        ;;
+    esac
 
     if test "x$pcre_jit_available" = "xyes"; then
        AC_MSG_RESULT(yes)