diff options
Diffstat (limited to 'include/linux/compiler_attributes.h')
-rw-r--r-- | include/linux/compiler_attributes.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h index f8c400ba1929..fe07b680dd4a 100644 --- a/include/linux/compiler_attributes.h +++ b/include/linux/compiler_attributes.h | |||
@@ -37,7 +37,6 @@ | |||
37 | # define __GCC4_has_attribute___designated_init__ 0 | 37 | # define __GCC4_has_attribute___designated_init__ 0 |
38 | # define __GCC4_has_attribute___externally_visible__ 1 | 38 | # define __GCC4_has_attribute___externally_visible__ 1 |
39 | # define __GCC4_has_attribute___noclone__ 1 | 39 | # define __GCC4_has_attribute___noclone__ 1 |
40 | # define __GCC4_has_attribute___optimize__ 1 | ||
41 | # define __GCC4_has_attribute___nonstring__ 0 | 40 | # define __GCC4_has_attribute___nonstring__ 0 |
42 | # define __GCC4_has_attribute___no_sanitize_address__ (__GNUC_MINOR__ >= 8) | 41 | # define __GCC4_has_attribute___no_sanitize_address__ (__GNUC_MINOR__ >= 8) |
43 | #endif | 42 | #endif |
@@ -163,17 +162,11 @@ | |||
163 | 162 | ||
164 | /* | 163 | /* |
165 | * Optional: not supported by clang | 164 | * Optional: not supported by clang |
166 | * Note: icc does not recognize gcc's no-tracer | ||
167 | * | 165 | * |
168 | * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-noclone-function-attribute | 166 | * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-noclone-function-attribute |
169 | * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-optimize-function-attribute | ||
170 | */ | 167 | */ |
171 | #if __has_attribute(__noclone__) | 168 | #if __has_attribute(__noclone__) |
172 | # if __has_attribute(__optimize__) | 169 | # define __noclone __attribute__((__noclone__)) |
173 | # define __noclone __attribute__((__noclone__, __optimize__("no-tracer"))) | ||
174 | # else | ||
175 | # define __noclone __attribute__((__noclone__)) | ||
176 | # endif | ||
177 | #else | 170 | #else |
178 | # define __noclone | 171 | # define __noclone |
179 | #endif | 172 | #endif |