]> Savannah Git Hosting - gnulib.git/commit
stdlib, string, wchar: Improve GCC 11 allocation-deallocation checking.
authorBruno Haible <bruno@clisp.org>
Sun, 8 Aug 2021 16:18:25 +0000 (18:18 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 8 Aug 2021 16:18:25 +0000 (18:18 +0200)
commit48ece5c3f2185f52ab8cd73ceac9bd9f0e01eac6
treef4ce9f2792efa53a82d9b49eda9e9e8fedebc8e8
parent6ccfbd6495f2849b1aeea84f73327f6ced0080a7
stdlib, string, wchar: Improve GCC 11 allocation-deallocation checking.

* lib/stdlib.in.h (aligned_alloc): For GCC >= 11: Declare also when the
platform already declares the function or when the module
'aligned_alloc' is not in use.
(calloc): For GCC >= 11: Declare nearly always.
(canonicalize_file_name): For GCC >= 11: Declare also when the platform
already declares the function or when the module 'canonicalize-lgpl' is
not in use.
(malloc, realloc): For GCC >= 11: Declare nearly always.
* lib/malloc.in.h: Remove redundant include.
(memalign): For GCC >= 11: Declare also when the platform already
declares the function or when the module 'memalign' is not in use.
* lib/string.in.h: Include <stdlib.h> always.
(strdup): For GCC >= 11: Declare also when the platform already declares
the function or when the module 'strdup' or 'strdup-posix' is not in
use.
* lib/wchar.in.h: Include <stdlib.h> always.
(wcsdup): For GCC >= 11: Declare also when the platform already declares
the function or when the module 'wcsdup' is not in use.
* modules/free-posix (Depends-on): Add string, wchar.
ChangeLog
lib/malloc.in.h
lib/stdlib.in.h
lib/string.in.h
lib/wchar.in.h
modules/free-posix