python312Packages.jax: 0.4.38 -> 0.5.0 (#374810)
[NixPkgs.git] / pkgs / development / libraries / pcre / stacksize-detection.patch
blob4bc97069b1e2c7c66fe9552289df5a9001b756cc
1 diff --git a/pcre_exec.c b/pcre_exec.c
2 --- a/pcre_exec.c
3 +++ b/pcre_exec.c
4 @@ -509,6 +509,12 @@
5 (e.g. stopped by repeated call or recursion limit)
6 */
8 +#ifdef __GNUC__
9 +static int
10 +match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
11 + PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,
12 + unsigned int rdepth) __attribute__((noinline,noclone));
13 +#endif
14 static int
15 match(REGISTER PCRE_PUCHAR eptr, REGISTER const pcre_uchar *ecode,
16 PCRE_PUCHAR mstart, int offset_top, match_data *md, eptrblock *eptrb,