<sys/cdefs.h>: Add support for alloc_align, alloc_size and malloc attributes.
authorzrj <rimvydas.jasinskas@gmail.com>
Tue, 20 Sep 2016 07:27:39 +0000 (10:27 +0300)
committerzrj <zrj@dragonflybsd.org>
Sat, 24 Sep 2016 06:45:16 +0000 (09:45 +0300)
commitbcbc807782fe7ff70dc7481d347f82bfed4bed26
treefe0ec81056e785bdf5ca14614cb8a9fcc17666da
parenta04bd7b8809b47f20565cb69126ea022ad87ee9d
<sys/cdefs.h>: Add support for alloc_align, alloc_size and malloc attributes.

  * __alloc_align tells the compiler that one of the arguments is a
    minimal alignment for pointer to help with pointers analysis.
  * __alloc_size tells the compiler that one of the arguments is a
    size of a pointer returned by function.
  * __malloclike tells the compiler that returned pointer does not
    alias any other pointer to help futher optimizations.

While there, add partial support for clang (as it is in FreeBSD).
sys/sys/cdefs.h