Files
haikuports/dev-libs/libpcre/patches/libpcre-8.45.patchset
extrowerk 2f097be33a libpcre: gentoo patches, enable jit (#6806)
* libpcre: gentoo patches, enable jit

* Disable jit for gcc2

* libpcre, update SOURCE_URI

Co-authored-by: begasus <begasus@gmail.com>
2022-05-07 11:34:54 +02:00

29 lines
1.0 KiB
Plaintext

From f5392df8b4e4f99e00efb501dba809a5353ad780 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sat, 2 Apr 2022 08:01:22 +0200
Subject: gentoo patch: fix-stack-size-detection
https://bugs.exim.org/show_bug.cgi?id=2173#c4
diff --git a/pcre_exec.c b/pcre_exec.c
index 5b96954..fa775bf 100644
--- a/pcre_exec.c
+++ b/pcre_exec.c
@@ -508,7 +508,12 @@ Returns: MATCH_MATCH if matched ) these values are >= 0
a negative PCRE_ERROR_xxx value if aborted by an error condition
(e.g. stopped by repeated call or recursion limit)
*/
-
+#ifdef __GNUC__
+static int
+match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
+ PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,
+ unsigned int rdepth) __attribute__((noinline,noclone));
+#endif
static int
match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,
--
2.30.2