On Mon, 2021-06-14 at 13:17 +0100, Jonathan Wakely wrote:
>         PR c++/101052
> 
> gcc/c-family/ChangeLog:
> 
>         * known-headers.cc (get_stdlib_header_for_name): Add known
>         headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit,
> calloc,
>         exit, and getenv.
> 
> gcc/testsuite/ChangeLog:
> 
>         * g++.dg/spellcheck-stdlib.C: Add checks for <cstdlib> names.
>         * gcc.dg/spellcheck-stdlib.c: Likewise.
> 
> There are no C tests for the functions because the C front-end
> doesn't
> give fix-it hints for them, it complains about mismatched implicit
> declarations. I assume this is why there were no existing tests for
> malloc, free, etc.
> 
> Tested powerpc64le-linux. OK for trunk?
> 

LGTM

Reply via email to