From: Matthew Vernon Date: Mon, 25 Mar 2019 19:55:21 +0000 (+0000) Subject: only use SSE2 instructions on CPUs that support it (Closes: #925360) X-Git-Tag: archive/raspbian/10.45-1+rpi1~1^2~69 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6182fda16b1f54920d4a4e12b128cc330e90fbe0;p=pcre2.git only use SSE2 instructions on CPUs that support it (Closes: #925360) This is a patch from Guillem Jover . --- diff --git a/src/pcre2_jit_compile.c b/src/pcre2_jit_compile.c index 32e985b..eea9591 100644 --- a/src/pcre2_jit_compile.c +++ b/src/pcre2_jit_compile.c @@ -5120,8 +5120,9 @@ for (i = 0; i < max; i++) } #if (defined SLJIT_CONFIG_X86 && SLJIT_CONFIG_X86) && !(defined SUPPORT_VALGRIND) && !(defined _WIN64) -if (check_fast_forward_char_pair_sse2(common, chars, max)) - return TRUE; +if (sljit_has_cpu_feature(SLJIT_HAS_SSE2)) + if (check_fast_forward_char_pair_sse2(common, chars, max)) + return TRUE; #endif in_range = FALSE;