Add alloc_size for libiberty memory allocation functions.
authorMartin Liska <mliska@suse.cz>
Mon, 10 Jun 2019 07:42:22 +0000 (09:42 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 10 Jun 2019 07:42:22 +0000 (07:42 +0000)
commit3bb0dcb6c02661bed2f8dd00052145fde3bbdecc
tree3bc1bb2c9b037c135bc71c7e925f270cf1325ad6
parent74ac8f1fe98b5126b291b2693e25d99b52f68c58
Add alloc_size for libiberty memory allocation functions.

2019-06-10  Martin Liska  <mliska@suse.cz>

* ansidecl.h:
(ATTRIBUTE_RESULT_SIZE_1): Define new macro.
(ATTRIBUTE_RESULT_SIZE_2): Likewise.
(ATTRIBUTE_RESULT_SIZE_1_2): Likewise.
* libiberty.h (xmalloc): Add RESULT_SIZE attribute.
(xrealloc): Likewise.
(xcalloc): Likewise.

From-SVN: r272109
include/ChangeLog
include/ansidecl.h
include/libiberty.h