https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127955
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Broken strsignal, strbk |Broken strsignal, sbrk
|fallbacks |fallbacks
CC| |egallager at gcc dot gnu.org
--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Sam James from comment #0)
> Both of these are wrong fallbacks for when we can't find strsignal or sbrk:
>
> gcc/system.h:extern const char *strsignal (int);
> gcc/system.h:511:extern void *sbrk (int);
>
> strsignal's return type isn't const. We define it in libiberty with the
> correct return type anyway for the actual implementation:
> r0-88033-g6819ba36b3805c.
>
> As for sbrk, it takes a ptrdiff_t, not an int.
>
> I'll fix both of these though we would expect these fallbacks to not really
> ever be needed.
On macOS, sbrk() is deprecated and might be removed eventually, in which case
the fallback might be needed...