Marcus Meissner
9899e33747
- add pcre-8.41-stack_frame_size_detection.patch to fix pcre stack frame size detection because modern compilers broke it by cloning and inlining pcre match() function [bsc#1058722] OBS-URL: https://build.opensuse.org/request/show/538186 OBS-URL: https://build.opensuse.org/package/show/Base:System/pcre?expand=0&rev=83
19 lines
679 B
Diff
19 lines
679 B
Diff
Index: pcre-8.39/pcre_exec.c
|
|
===================================================================
|
|
--- pcre-8.39.orig/pcre_exec.c
|
|
+++ pcre-8.39/pcre_exec.c
|
|
@@ -509,6 +509,12 @@ Returns: MATCH_MATCH if matched
|
|
(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,
|
|
|