1 #ifndef ULINUX_COMPILER_MISC_H
2 #define ULINUX_COMPILER_MISC_H
3 /******************************************************************************
4 this code is protected by the GNU affero GPLv3
5 author:Sylvain BERTRAND <sylvain.bertrand AT gmail dot com>
6 *******************************************************************************/
7 /*----------------------------------------------------------------------------*/
9 #define unreachable __builtin_unreachable
10 #define NOCLONE __attribute__((noclone))
11 #define NOINLINE __attribute__((noinline))
14 /*too risky to have the entry point optimized out with a new C toolchain*/
16 /*----------------------------------------------------------------------------*/
18 /*----------------------------------------------------------------------------*/
20 #define PACKED __attribute__((packed))
24 #error "the compiler must support packed structure"
26 /*----------------------------------------------------------------------------*/