git: Use recently added attributes in few standard headers.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Fri Sep 23 23:51:33 PDT 2016


commit 3d258b72fffe96fef402d9843fa429a2f64d5751
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Thu Sep 22 09:19:10 2016 +0300

    Use recently added attributes in few standard headers.
    
    There attributes are to assits compiler making better analysis
    doring compilation time. Like branch prediction and hinting.
    
    While there, for now prefer to use __attribute__((__noreturn__)) to
    _Noreturn, since neither OpenBSD or NetBSD has it at all and in our
    variant we don't handle it in c++ case ([[noreturn]]) anyway.
    Looks to be only a workaround for some old clang++ version.

Summary of changes:
 include/stdlib.h | 18 +++++++++---------
 include/string.h |  4 ++--
 include/wchar.h  |  2 +-
 sys/sys/malloc.h | 20 +++++++++++---------
 4 files changed, 23 insertions(+), 21 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3d258b72fffe96fef402d9843fa429a2f64d5751


-- 
DragonFly BSD source repository


More information about the Commits mailing list