summaryrefslogtreecommitdiff
path: root/system/pcre/stack-frame-size-detection.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-07-06 19:38:52 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-07-06 19:38:52 +0000
commitcd6af0265e8b5020c6b56efb0dc7cd27be65125d (patch)
tree8eabd4b13ad52c59d3fe7c0e52550e4b2c3767ac /system/pcre/stack-frame-size-detection.patch
parentcdd7c92be92eb782d733a446e753ca89917bc7d5 (diff)
downloadpackages-cd6af0265e8b5020c6b56efb0dc7cd27be65125d.tar.gz
packages-cd6af0265e8b5020c6b56efb0dc7cd27be65125d.tar.bz2
packages-cd6af0265e8b5020c6b56efb0dc7cd27be65125d.tar.xz
packages-cd6af0265e8b5020c6b56efb0dc7cd27be65125d.zip
system/pcre: maybe even fix pmmx mariadb build?
Diffstat (limited to 'system/pcre/stack-frame-size-detection.patch')
-rw-r--r--system/pcre/stack-frame-size-detection.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/pcre/stack-frame-size-detection.patch b/system/pcre/stack-frame-size-detection.patch
new file mode 100644
index 000000000..54179a7d6
--- /dev/null
+++ b/system/pcre/stack-frame-size-detection.patch
@@ -0,0 +1,15 @@
+--- pcre-8.43/pcre_exec.c.old 2018-02-20 15:21:37.000000000 +0000
++++ pcre-8.43/pcre_exec.c 2019-07-06 19:36:59.078411271 +0000
+@@ -509,6 +509,12 @@
+ (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,