mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
libpcre2: add missing gcc2 patchset.
This commit is contained in:
30
dev-libs/libpcre2/patches/libpcre2-10.33.patchset
Normal file
30
dev-libs/libpcre2/patches/libpcre2-10.33.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user