compiler-gcc.h (0aa5e49c6845ecd82531341085f367767c9f419a) compiler-gcc.h (313dd1b629219db50cad532dba6a3b3b22ffe622)
1#ifndef __LINUX_COMPILER_H
2#error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
3#endif
4
5/*
6 * Common definitions for all gcc versions go here.
7 */
8#define GCC_VERSION (__GNUC__ * 10000 \

--- 209 unchanged lines hidden (view full) ---

218 * unreleased. Really, we need to have autoconf for the kernel.
219 */
220#define unreachable() \
221 do { annotate_unreachable(); __builtin_unreachable(); } while (0)
222
223/* Mark a function definition as prohibited from being cloned. */
224#define __noclone __attribute__((__noclone__, __optimize__("no-tracer")))
225
1#ifndef __LINUX_COMPILER_H
2#error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
3#endif
4
5/*
6 * Common definitions for all gcc versions go here.
7 */
8#define GCC_VERSION (__GNUC__ * 10000 \

--- 209 unchanged lines hidden (view full) ---

218 * unreleased. Really, we need to have autoconf for the kernel.
219 */
220#define unreachable() \
221 do { annotate_unreachable(); __builtin_unreachable(); } while (0)
222
223/* Mark a function definition as prohibited from being cloned. */
224#define __noclone __attribute__((__noclone__, __optimize__("no-tracer")))
225
226#ifdef RANDSTRUCT_PLUGIN
227#define __randomize_layout __attribute__((randomize_layout))
228#define __no_randomize_layout __attribute__((no_randomize_layout))
229#endif
230
226#endif /* GCC_VERSION >= 40500 */
227
228#if GCC_VERSION >= 40600
229/*
230 * When used with Link Time Optimization, gcc can optimize away C functions or
231 * variables which are referenced only from assembly code. __visible tells the
232 * optimizer that something else uses this function or variable, thus preventing
233 * this.

--- 86 unchanged lines hidden ---
231#endif /* GCC_VERSION >= 40500 */
232
233#if GCC_VERSION >= 40600
234/*
235 * When used with Link Time Optimization, gcc can optimize away C functions or
236 * variables which are referenced only from assembly code. __visible tells the
237 * optimizer that something else uses this function or variable, thus preventing
238 * this.

--- 86 unchanged lines hidden ---