From: Stéphane Graber Date: Wed, 26 Sep 2018 14:44:51 +0000 (-0400) Subject: Merge pull request #2648 from brauner/2018-09-26/compiler_attributes X-Git-Tag: lxc-4.0.0~431 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=323a7f18719c237df479f0fe96991ba0443182f7;p=mirror_lxc.git Merge pull request #2648 from brauner/2018-09-26/compiler_attributes compiler: add __hot attribute --- 323a7f18719c237df479f0fe96991ba0443182f7 diff --cc src/lxc/compiler.h index 59ad802da,b6fbbc0e0..12214b9b1 --- a/src/lxc/compiler.h +++ b/src/lxc/compiler.h @@@ -40,20 -38,18 +40,24 @@@ #define __fallthrough #endif -#ifndef _noreturn_ -#if __STDC_VERSION__ >= 201112L && !IS_BIONIC -#define __noreturn _Noreturn -#else -#define __noreturn __attribute__((noreturn)) -#endif +#ifndef __noreturn +# if __STDC_VERSION__ >= 201112L +# if !IS_BIONIC +# define __noreturn _Noreturn +# else +# define __noreturn __attribute__((__noreturn__)) +# endif +# elif IS_BIONIC +# define __noreturn __attribute__((__noreturn__)) +# else +# define __noreturn __attribute__((noreturn)) +# endif #endif + #ifndef __hot + # define __hot __attribute__((hot)) + #endif + #define __cgfsng_ops #endif /* __LXC_COMPILER_H */