mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
* libpcre: gentoo patches, enable jit * Disable jit for gcc2 * libpcre, update SOURCE_URI Co-authored-by: begasus <begasus@gmail.com>
29 lines
1.0 KiB
Plaintext
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
|
|
|