aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler-gcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compiler-gcc.h')
-rw-r--r--include/linux/compiler-gcc.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h
index 7deaae3dc87d..c4a66c036692 100644
--- a/include/linux/compiler-gcc.h
+++ b/include/linux/compiler-gcc.h
@@ -231,6 +231,7 @@
231#endif /* GCC_VERSION >= 40500 */ 231#endif /* GCC_VERSION >= 40500 */
232 232
233#if GCC_VERSION >= 40600 233#if GCC_VERSION >= 40600
234
234/* 235/*
235 * When used with Link Time Optimization, gcc can optimize away C functions or 236 * 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 * variables which are referenced only from assembly code. __visible tells the
@@ -238,7 +239,17 @@
238 * this. 239 * this.
239 */ 240 */
240#define __visible __attribute__((externally_visible)) 241#define __visible __attribute__((externally_visible))
241#endif 242
243/*
244 * RANDSTRUCT_PLUGIN wants to use an anonymous struct, but it is only
245 * possible since GCC 4.6. To provide as much build testing coverage
246 * as possible, this is used for all GCC 4.6+ builds, and not just on
247 * RANDSTRUCT_PLUGIN builds.
248 */
249#define randomized_struct_fields_start struct {
250#define randomized_struct_fields_end } __randomize_layout;
251
252#endif /* GCC_VERSION >= 40600 */
242 253
243 254
244#if GCC_VERSION >= 40900 && !defined(__CHECKER__) 255#if GCC_VERSION >= 40900 && !defined(__CHECKER__)