https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104799
Sergei Trofimovich <slyfox at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|--- |12.2
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
> libcc1/libcc1plugin.cc
(In reply to Mosè Giordano from comment #2)
> Created attachment 52568 [details]
> Patch for poisoned calloc on Musl systems
>
> Following the example of
> https://git.alpinelinux.org/aports/tree/main/gcc/0042-Fix-attempt-to-use-
> poisoned-calloc-error-in-libgccji.patch, reported in
> https://bugs.gentoo.org/828580, I wrote the attached patch for libcc1, which
> seems to solve the issue for me.
I think the change looks reasonable. Should be fixed by "c++: avoid <memory>
poisoning on musl [PR106102]" patch from PR106102 in master and gcc-12
branches.
Can you give it a try?