lkml.org 
[lkml]   [2010]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] compiler: prevent dead store elimination
> 
> >> +#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
do dead-store-optimization.

-Andi



\
 
 \ /
  Last update: 2010-03-02 13:27    [from the cache]
©2003-2011 Jasper Spaans