summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-04-06 01:39:16 +0000
committerpfg <pfg@FreeBSD.org>2015-04-06 01:39:16 +0000
commitcb4cf650b01eb87fd29d08f800cc409ada79bfb0 (patch)
treebfe8c34c1990c129daa869d6fab191672ea7ec14 /etc
parentd89b4285c116c1f3c77e031e0b4c26c272248478 (diff)
downloadFreeBSD-src-cb4cf650b01eb87fd29d08f800cc409ada79bfb0.zip
FreeBSD-src-cb4cf650b01eb87fd29d08f800cc409ada79bfb0.tar.gz
Make use of gcc attributes in some standard include headers.
The `nonnull' attribute specifies that some function parameters should be non-null pointers. This is very useful as it helps the compiler generate warnings on suspicious code and can also enable some small optimizations. Also start using 'alloc_size' attribute in the allocator functions. This is an initial step to better integrate our libc with the compiler: these attributes are fully supported by clang and they are also useful for the static analyzer. Note that due to some bogus internal procedure in the way gcc ports are built they may require updating if they were built before r280801. Relnotes: yes Hinted by: Android's bionic libc Differential Revision: https://reviews.freebsd.org/D2107
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud