|
64 | 64 | * compiler should see some alignment anyway, when the return value is |
65 | 65 | * massaged by 'flags = ptr & 3; ptr &= ~3;'). |
66 | 66 | * |
67 | | - * Optional: not supported by icc |
68 | | - * |
69 | 67 | * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-assume_005faligned-function-attribute |
70 | 68 | * clang: https://clang.llvm.org/docs/AttributeReference.html#assume-aligned |
71 | 69 | */ |
72 | | -#if __has_attribute(__assume_aligned__) |
73 | | -# define __assume_aligned(a, ...) __attribute__((__assume_aligned__(a, ## __VA_ARGS__))) |
74 | | -#else |
75 | | -# define __assume_aligned(a, ...) |
76 | | -#endif |
| 70 | +#define __assume_aligned(a, ...) __attribute__((__assume_aligned__(a, ## __VA_ARGS__))) |
77 | 71 |
|
78 | 72 | /* |
79 | 73 | * Note the long name. |
|
85 | 79 | /* |
86 | 80 | * Optional: only supported since gcc >= 9 |
87 | 81 | * Optional: not supported by clang |
88 | | - * Optional: not supported by icc |
89 | 82 | * |
90 | 83 | * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-copy-function-attribute |
91 | 84 | */ |
|
98 | 91 | /* |
99 | 92 | * Optional: not supported by gcc |
100 | 93 | * Optional: only supported since clang >= 14.0 |
101 | | - * Optional: not supported by icc |
102 | 94 | * |
103 | 95 | * clang: https://clang.llvm.org/docs/AttributeReference.html#diagnose_as_builtin |
104 | 96 | */ |
|
122 | 114 |
|
123 | 115 | /* |
124 | 116 | * Optional: not supported by clang |
125 | | - * Optional: not supported by icc |
126 | 117 | * |
127 | 118 | * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html#index-designated_005finit-type-attribute |
128 | 119 | */ |
|
236 | 227 | /* |
237 | 228 | * Optional: only supported since gcc >= 8 |
238 | 229 | * Optional: not supported by clang |
239 | | - * Optional: not supported by icc |
240 | 230 | * |
241 | 231 | * gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#index-nonstring-variable-attribute |
242 | 232 | */ |
|
267 | 257 |
|
268 | 258 | /* |
269 | 259 | * Optional: not supported by gcc. |
270 | | - * Optional: not supported by icc. |
271 | 260 | * |
272 | 261 | * clang: https://clang.llvm.org/docs/AttributeReference.html#overloadable |
273 | 262 | */ |
|
287 | 276 | * Note: the "type" argument should match any __builtin_object_size(p, type) usage. |
288 | 277 | * |
289 | 278 | * Optional: not supported by gcc. |
290 | | - * Optional: not supported by icc. |
291 | 279 | * |
292 | 280 | * clang: https://clang.llvm.org/docs/AttributeReference.html#pass-object-size-pass-dynamic-object-size |
293 | 281 | */ |
|
0 commit comments