commit: 44cf2c670ce9e23133cd3d2a291fc465c739c25d Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Mar 1 06:49:24 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Mar 1 06:49:24 2025 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=44cf2c67
15.0.0: add JIT vs GGC fix (drop malloc attributes) Add a workaround patch at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117047#c36. It's really a correct fix but overkill, Jakub is proposing a more moderate version that should land soon, but let's get this workaround in downstream first. Bug: https://gcc.gnu.org/PR117047 Signed-off-by: Sam James <sam <AT> gentoo.org> 15.0.0/gentoo/81_all_PR117047-jit-gc-malloc.patch | 22 ++++++++++++++++++++++ 15.0.0/gentoo/README.history | 4 ++++ 2 files changed, 26 insertions(+) diff --git a/15.0.0/gentoo/81_all_PR117047-jit-gc-malloc.patch b/15.0.0/gentoo/81_all_PR117047-jit-gc-malloc.patch new file mode 100644 index 0000000..af8a23c --- /dev/null +++ b/15.0.0/gentoo/81_all_PR117047-jit-gc-malloc.patch @@ -0,0 +1,22 @@ +https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117047#c36 +--- a/gcc/ggc.h ++++ b/gcc/ggc.h +@@ -127,8 +127,7 @@ extern void gt_pch_save (FILE *f); + + /* The internal primitive. */ + extern void *ggc_internal_alloc (size_t, void (*)(void *), size_t, +- size_t CXX_MEM_STAT_INFO) +- ATTRIBUTE_MALLOC; ++ size_t CXX_MEM_STAT_INFO); + + inline void * + ggc_internal_alloc (size_t s CXX_MEM_STAT_INFO) +@@ -141,7 +140,7 @@ extern size_t ggc_round_alloc_size (size_t requested_size); + /* Allocates cleared memory. */ + extern void *ggc_internal_cleared_alloc (size_t, void (*)(void *), + size_t, size_t +- CXX_MEM_STAT_INFO) ATTRIBUTE_MALLOC; ++ CXX_MEM_STAT_INFO); + + inline void * + ggc_internal_cleared_alloc (size_t s CXX_MEM_STAT_INFO) diff --git a/15.0.0/gentoo/README.history b/15.0.0/gentoo/README.history index 06c4a0d..494be1f 100644 --- a/15.0.0/gentoo/README.history +++ b/15.0.0/gentoo/README.history @@ -1,3 +1,7 @@ +47 ???? + + + 81_all_PR117047-jit-gc-malloc.patch + 46 17 February 2025 - 81_all_PR118097-ipa-cp-Perform-operations-in-the-appropriate-types-P.patch
