diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-07 23:37:50 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-07 23:37:50 +0100 |
commit | 8dfbaa8100b5c51e1de0e4e476ef5513e3ed1bdd (patch) | |
tree | 6514153552d2daad7d178ee75d47332710e2979e /dev-libs/link-grammar/files | |
parent | 2fe5661a32d6ec0ba1d6b37cc8ae67e3f81459ec (diff) |
gentoo auto-resync : 07:05:2023 - 23:37:50
Diffstat (limited to 'dev-libs/link-grammar/files')
-rw-r--r-- | dev-libs/link-grammar/files/link-grammar-5.12.3-Wimplicit-function-declaration.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-libs/link-grammar/files/link-grammar-5.12.3-Wimplicit-function-declaration.patch b/dev-libs/link-grammar/files/link-grammar-5.12.3-Wimplicit-function-declaration.patch new file mode 100644 index 000000000000..55ca89c09b94 --- /dev/null +++ b/dev-libs/link-grammar/files/link-grammar-5.12.3-Wimplicit-function-declaration.patch @@ -0,0 +1,35 @@ +From 3cbc9ddfd4c3a3e407338619fa383d24da05b23d Mon Sep 17 00:00:00 2001 +From: David Seifert <soap@gentoo.org> +Date: Sun, 7 May 2023 16:02:23 +0200 +Subject: [PATCH] Use correct guard macro for glibc heap functions + +* `__GNUC__` == Compiling with `-std=gnu*` +* `__GLIBC__` == Compiling against glibc + +Bug: https://bugs.gentoo.org/903749 +--- + link-grammar/parse/extract-links.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/link-grammar/parse/extract-links.c b/link-grammar/parse/extract-links.c +index a6129ac7a..e2ce266bc 100644 +--- a/link-grammar/parse/extract-links.c ++++ b/link-grammar/parse/extract-links.c +@@ -278,7 +278,7 @@ void free_extractor(extractor_t * pex) + pex->x_table_size = 0; + pex->x_table = NULL; + +-#if defined __GNUC__ ++#if defined __GLIBC__ + // MST parsing can result in pathological cases, with almost a + // billion elts in the Parse_choice_pool. This blows up the + // resident-set size (RSS) over time. Avoid this issue by trimming. +@@ -294,7 +294,7 @@ void free_extractor(extractor_t * pex) + + xfree((void *) pex, sizeof(extractor_t)); + +-#if defined __GNUC__ ++#if defined __GLIBC__ + // malloc_trim() is a gnu extension. An alternative would be + // to call madvise(MADV_DONTNEED) but this is more complicated. + if (trim) malloc_trim(0); |