aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler-intel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compiler-intel.h')
-rw-r--r--include/linux/compiler-intel.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/linux/compiler-intel.h b/include/linux/compiler-intel.h
index 547cdc920a3c..4c7f9befa9f6 100644
--- a/include/linux/compiler-intel.h
+++ b/include/linux/compiler-intel.h
@@ -14,10 +14,6 @@
14/* Intel ECC compiler doesn't support gcc specific asm stmts. 14/* Intel ECC compiler doesn't support gcc specific asm stmts.
15 * It uses intrinsics to do the equivalent things. 15 * It uses intrinsics to do the equivalent things.
16 */ 16 */
17#undef barrier
18#undef barrier_data
19#undef RELOC_HIDE
20#undef OPTIMIZER_HIDE_VAR
21 17
22#define barrier() __memory_barrier() 18#define barrier() __memory_barrier()
23#define barrier_data(ptr) barrier() 19#define barrier_data(ptr) barrier()
@@ -38,13 +34,12 @@
38 34
39#endif 35#endif
40 36
41#ifndef __HAVE_BUILTIN_BSWAP16__
42/* icc has this, but it's called _bswap16 */ 37/* icc has this, but it's called _bswap16 */
43#define __HAVE_BUILTIN_BSWAP16__ 38#define __HAVE_BUILTIN_BSWAP16__
44#define __builtin_bswap16 _bswap16 39#define __builtin_bswap16 _bswap16
45#endif
46 40
47/* 41/* The following are for compatibility with GCC, from compiler-gcc.h,
48 * icc defines __GNUC__, but does not implement the builtin overflow checkers. 42 * and may be redefined here because they should not be shared with other
43 * compilers, like clang.
49 */ 44 */
50#undef COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW 45#define __visible __attribute__((externally_visible))