20 #ifndef _XENO_NUCLEUS_COMPILER_H
21 #define _XENO_NUCLEUS_COMPILER_H
23 #if !defined(__IN_XENOMAI__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0))
24 #define __deprecated_call__ __attribute__((deprecated))
26 #ifdef CONFIG_XENO_OPT_NOWARN_DEPRECATED
27 #define __deprecated_in_kernel__
29 #define __deprecated_in_kernel__ __deprecated_call__
32 #define __deprecated_in_kernel__
35 #define __deprecated_in_kernel__
39 #if __GNUC__ == 4 && __GNUC_MINOR__ == 6
40 #define __constructor__ __attribute__((constructor, noclone))
42 #define __constructor__ __attribute__((constructor))
47 #if !defined(__GNUC__) || __GNUC__ == 2 && __GNUC_MINOR__ < 96
48 #define __builtin_expect(x, v) (x)
51 #define likely(x) __builtin_expect((x) != 0, 1)
52 #define unlikely(x) __builtin_expect((x) != 0, 0)