]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Merge pull request #2648 from brauner/2018-09-26/compiler_attributes
authorStéphane Graber <stgraber@stgraber.org>
Wed, 26 Sep 2018 14:44:51 +0000 (10:44 -0400)
committerGitHub <noreply@github.com>
Wed, 26 Sep 2018 14:44:51 +0000 (10:44 -0400)
compiler: add __hot attribute

1  2 
src/lxc/compiler.h

index 59ad802dabaa788f364d97a5cbc0a89a3f33ba8e,b6fbbc0e07cacd873c4a9788519069ed12f0a8e7..12214b9b1ee9925eecb64b0ef9c7285319c070e5
  #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 */