libpcre2: add missing gcc2 patchset.

This commit is contained in:
Jerome Duval
2019-04-30 19:56:34 +02:00
parent 650ea9b9e1
commit 3257c8065b

View File

@@ -0,0 +1,30 @@
From e1812512ada6e350a2f0fd63d874e8eee31a309e Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 30 Apr 2019 18:33:26 +0200
Subject: gcc2 fix
diff --git a/src/pcre2_jit_compile.c b/src/pcre2_jit_compile.c
index 1f21bfb..f107883 100644
--- a/src/pcre2_jit_compile.c
+++ b/src/pcre2_jit_compile.c
@@ -3873,6 +3873,8 @@ DEFINE_COMPILER;
SLJIT_UNUSED_ARG(backtracks);
SLJIT_UNUSED_ARG(must_be_valid);
+{
+
#if defined SUPPORT_UNICODE && PCRE2_CODE_UNIT_WIDTH != 32
struct sljit_jump *jump;
#endif
@@ -3948,6 +3950,7 @@ if (common->invalid_utf && !must_be_valid)
#endif /* SUPPORT_UNICODE */
OP2(SLJIT_SUB, STR_PTR, 0, STR_PTR, 0, SLJIT_IMM, IN_UCHARS(1));
}
+}
static void check_newlinechar(compiler_common *common, int nltype, jump_list **backtracks, BOOL jumpifmatch)
{
--
2.21.0