aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/include/stdlib.h
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2018-01-21 20:27:47 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-30 10:47:57 +0200
commit271e856a49731edb88427f4a7aeb388825e366c3 (patch)
treeee8efe3783f94f30dd511b7cfaa4e858a9b26ebb /newlib/libc/include/stdlib.h
parent1736bd300339aa54ddf5f179dbb40c4b19079dd7 (diff)
downloadnewlib-271e856a49731edb88427f4a7aeb388825e366c3.zip
newlib-271e856a49731edb88427f4a7aeb388825e366c3.tar.gz
newlib-271e856a49731edb88427f4a7aeb388825e366c3.tar.bz2
Define a new __alloc_size2 attribute to complement the exiting support.
At least on GCC7 calling __alloc_size(x) twice is not equivalent to calling using the attribute once with two arguments. The later is the documented use in GCC documentation so add a new alloc_size(n, x) alternative to cover for the few places where it is used: basically: calloc(3), reallocarray(3) and mallocarray(9). Submitted by: Mark Millard MFC after: 3 days Reference: http://docs.freebsd.org/cgi/mid.cgi?F227842D-6BE2-4680-82E7-07906AF61CD7
Diffstat (limited to 'newlib/libc/include/stdlib.h')
0 files changed, 0 insertions, 0 deletions