Robert P. J. Day | 94f582f | 2007-10-16 23:26:11 -0700 | [diff] [blame] | 1 | #ifndef __LINUX_COMPILER_H |
| 2 | #error "Please don't include <linux/compiler-intel.h> directly, include <linux/compiler.h> instead." |
| 3 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | |
| 5 | #ifdef __ECC |
| 6 | |
| 7 | /* Some compiler specific definitions are overwritten here |
| 8 | * for Intel ECC compiler |
| 9 | */ |
| 10 | |
| 11 | #include <asm/intrinsics.h> |
| 12 | |
| 13 | /* Intel ECC compiler doesn't support gcc specific asm stmts. |
| 14 | * It uses intrinsics to do the equivalent things. |
| 15 | */ |
| 16 | #undef barrier |
| 17 | #undef RELOC_HIDE |
| 18 | |
| 19 | #define barrier() __memory_barrier() |
| 20 | |
| 21 | #define RELOC_HIDE(ptr, off) \ |
| 22 | ({ unsigned long __ptr; \ |
| 23 | __ptr = (unsigned long) (ptr); \ |
| 24 | (typeof(ptr)) (__ptr + (off)); }) |
| 25 | |
Rusty Russell | c5e631cf | 2007-05-06 14:51:05 -0700 | [diff] [blame] | 26 | /* Intel ECC compiler doesn't support __builtin_types_compatible_p() */ |
| 27 | #define __must_be_array(a) 0 |
| 28 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | #endif |
Borislav Petkov | 9490991 | 2007-05-06 14:49:17 -0700 | [diff] [blame] | 30 | |
| 31 | #define uninitialized_var(x) x |