Commit | Line | Data |
---|---|---|
b7cdc182 | 1 | /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) |
9f36eaed | 2 | * |
40d6e366 MD |
3 | * wrapper/compiler.h |
4 | * | |
5 | * Copyright (C) 2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
40d6e366 MD |
6 | */ |
7 | ||
9f36eaed MJ |
8 | #ifndef _LTTNG_WRAPPER_COMPILER_H |
9 | #define _LTTNG_WRAPPER_COMPILER_H | |
10 | ||
40d6e366 MD |
11 | #include <linux/compiler.h> |
12 | ||
13 | /* | |
14 | * Don't allow compiling with buggy compiler. | |
15 | */ | |
16 | ||
cf262f57 MD |
17 | #ifdef GCC_VERSION |
18 | ||
40d6e366 MD |
19 | /* |
20 | * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854 | |
21 | */ | |
cf262f57 MD |
22 | # ifdef __ARMEL__ |
23 | # if GCC_VERSION >= 40800 && GCC_VERSION <= 40802 | |
24 | # error Your gcc version produces clobbered frame accesses | |
25 | # endif | |
40d6e366 MD |
26 | # endif |
27 | #endif | |
28 | ||
0a25550c MD |
29 | #define __LTTNG_COMPOUND_LITERAL(type, ...) (type[]) { __VA_ARGS__ } |
30 | ||
40d6e366 | 31 | #endif /* _LTTNG_WRAPPER_COMPILER_H */ |