[Committed] add missing attribute alloc_size to allocation builtins (PR 78668)

Martin Sebor msebor@gmail.com
Sun Dec 4 17:50:00 GMT 2016

In a review of my patch to warn on overflow in calls to allocation
functions (bugs 77531 and 78284) Jeff asked[*]me to commit the bits
that add the missing alloc_attribute to GCC memory allocation built
ins.  The patch also add the missing attribute returns_nonnull to

Tested on x86_64 and committed to trunk.


[*] https://gcc.gnu.org/ml/gcc-patches/2016-12/msg00260.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-78668.diff
Type: text/x-patch
Size: 9189 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161204/9783025e/attachment.bin>

More information about the Gcc-patches mailing list