diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-08-10 07:14:15 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-08-10 07:14:15 -0400 |
commit | 1d0f49e14007a5426eb7e9e5808168cdb77b3e7f (patch) | |
tree | 1d7eb036e06938dedb7488910e4d34dc4c73fa68 /include/linux/compiler-gcc.h | |
parent | 99504819fc643160afd6813921b1d42b18e52a49 (diff) | |
parent | e93c17301ac55321fc18e0f8316e924e58a83c8c (diff) |
Merge branch 'x86/urgent' into x86/asm, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/compiler-gcc.h')
-rw-r--r-- | include/linux/compiler-gcc.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index dd4b4c59c2f0..310f51d42550 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h | |||
@@ -224,6 +224,7 @@ | |||
224 | #endif /* GCC_VERSION >= 40500 */ | 224 | #endif /* GCC_VERSION >= 40500 */ |
225 | 225 | ||
226 | #if GCC_VERSION >= 40600 | 226 | #if GCC_VERSION >= 40600 |
227 | |||
227 | /* | 228 | /* |
228 | * When used with Link Time Optimization, gcc can optimize away C functions or | 229 | * When used with Link Time Optimization, gcc can optimize away C functions or |
229 | * variables which are referenced only from assembly code. __visible tells the | 230 | * variables which are referenced only from assembly code. __visible tells the |
@@ -231,7 +232,17 @@ | |||
231 | * this. | 232 | * this. |
232 | */ | 233 | */ |
233 | #define __visible __attribute__((externally_visible)) | 234 | #define __visible __attribute__((externally_visible)) |
234 | #endif | 235 | |
236 | /* | ||
237 | * RANDSTRUCT_PLUGIN wants to use an anonymous struct, but it is only | ||
238 | * possible since GCC 4.6. To provide as much build testing coverage | ||
239 | * as possible, this is used for all GCC 4.6+ builds, and not just on | ||
240 | * RANDSTRUCT_PLUGIN builds. | ||
241 | */ | ||
242 | #define randomized_struct_fields_start struct { | ||
243 | #define randomized_struct_fields_end } __randomize_layout; | ||
244 | |||
245 | #endif /* GCC_VERSION >= 40600 */ | ||
235 | 246 | ||
236 | 247 | ||
237 | #if GCC_VERSION >= 40900 && !defined(__CHECKER__) | 248 | #if GCC_VERSION >= 40900 && !defined(__CHECKER__) |