wrapper: remove rcu list traversal wrapper
[lttng-modules.git] / wrapper / compiler.h
1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
2 *
3 * wrapper/compiler.h
4 *
5 * Copyright (C) 2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 */
7
8 #ifndef _LTTNG_WRAPPER_COMPILER_H
9 #define _LTTNG_WRAPPER_COMPILER_H
10
11 #include <linux/compiler.h>
12
13 /*
14 * Don't allow compiling with buggy compiler.
15 */
16
17 #ifdef GCC_VERSION
18
19 /*
20 * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854
21 */
22 # ifdef __ARMEL__
23 # if GCC_VERSION >= 40800 && GCC_VERSION <= 40802
24 # error Your gcc version produces clobbered frame accesses
25 # endif
26 # endif
27 #endif
28
29 #define __LTTNG_COMPOUND_LITERAL(type, ...) (type[]) { __VA_ARGS__ }
30
31 #endif /* _LTTNG_WRAPPER_COMPILER_H */
This page took 0.03033 seconds and 4 git commands to generate.