Re: [PATCH v2] compiler: prevent dead store elimination
From: Andi Kleen
Date: Tue Mar 02 2010 - 07:24:31 EST
> >> +#define ARRAY_PREVENT_DSE(p, n)
> > Who says the Intel compiler doesn't need this?
> There was a comment in include/linux/compiler-intel.h that it's not supported.
That's true for the ia64 version, but not for the x86 version which supports
gcc compatible inline assembler. So on x86 you can use it. On Itanium
it probably would need some other compiler built in.
Also in any case some form of memory clobber is needed because it'll surely
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/