X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fcompiler-intel.h;h=1a97cac7dcb2d4806d8db6bb6a43972bd6185325;hb=refs%2Fheads%2Fpandora-3.2;hp=d8e636e5607d78c40f75043b7dca312fc3c0748a;hpb=fe537c0ee86b27fbe0690a7869815da80f492dbd;p=pandora-kernel.git diff --git a/include/linux/compiler-intel.h b/include/linux/compiler-intel.h index d8e636e5607d..1a97cac7dcb2 100644 --- a/include/linux/compiler-intel.h +++ b/include/linux/compiler-intel.h @@ -15,6 +15,7 @@ */ #undef barrier #undef RELOC_HIDE +#undef OPTIMIZER_HIDE_VAR #define barrier() __memory_barrier() @@ -23,9 +24,13 @@ __ptr = (unsigned long) (ptr); \ (typeof(ptr)) (__ptr + (off)); }) +/* This should act as an optimization barrier on var. + * Given that this compiler does not have inline assembly, a compiler barrier + * is the best we can do. + */ +#define OPTIMIZER_HIDE_VAR(var) barrier() + /* Intel ECC compiler doesn't support __builtin_types_compatible_p() */ #define __must_be_array(a) 0 #endif - -#define uninitialized_var(x) x