From 7996a3d79d55b7f879dfd62e202bbfe2963718d3 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 27 Jul 2013 22:15:01 +0000 Subject: really properly move files --- .../contrib/include/linux/compiler-intel.h | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 libdde-linux26/contrib/include/linux/compiler-intel.h (limited to 'libdde-linux26/contrib/include/linux/compiler-intel.h') diff --git a/libdde-linux26/contrib/include/linux/compiler-intel.h b/libdde-linux26/contrib/include/linux/compiler-intel.h new file mode 100644 index 00000000..d8e636e5 --- /dev/null +++ b/libdde-linux26/contrib/include/linux/compiler-intel.h @@ -0,0 +1,31 @@ +#ifndef __LINUX_COMPILER_H +#error "Please don't include directly, include instead." +#endif + +#ifdef __ECC + +/* Some compiler specific definitions are overwritten here + * for Intel ECC compiler + */ + +#include + +/* Intel ECC compiler doesn't support gcc specific asm stmts. + * It uses intrinsics to do the equivalent things. + */ +#undef barrier +#undef RELOC_HIDE + +#define barrier() __memory_barrier() + +#define RELOC_HIDE(ptr, off) \ + ({ unsigned long __ptr; \ + __ptr = (unsigned long) (ptr); \ + (typeof(ptr)) (__ptr + (off)); }) + +/* Intel ECC compiler doesn't support __builtin_types_compatible_p() */ +#define __must_be_array(a) 0 + +#endif + +#define uninitialized_var(x) x -- cgit v1.2.3