OSDN Git Service

Restore attribute alloc_size for GCC.
authorElliott Hughes <enh@google.com>
Sat, 30 Jul 2016 16:58:15 +0000 (09:58 -0700)
committerElliott Hughes <enh@google.com>
Sat, 30 Jul 2016 16:58:15 +0000 (09:58 -0700)
commit36a88e82ebd8cda894292c7071cb1256592221aa
treedf1bb3c8e7d3e2d0cb83bc87a5e6cb2d24435d8b
parent3318c56c99e7edf0a744a47f50478a5ed372c989
Restore attribute alloc_size for GCC.

clang doesn't support attribute alloc_size, but GCC uses it to give
diagnostics where clang can't, and we had a test for one such case.

Bug: http://b/30513330
Change-Id: I4c14771258992d6bea684db7f91d60312642662f
libc/include/malloc.h