[LAD] gcc and pointer aliasing... missing optimizations in some cases

torbenh torbenh at gmx.de
Sun Dec 27 06:41:07 UTC 2009


On Sat, Dec 26, 2009 at 10:50:40AM +0100, Tim Blechmann wrote:
> >>> Thus telling the compiler that `this` is not an alias when
> >>> process() is called.
> >>
> >> On second thought... since those didn't work for me, perhaps part of
> >> the problem is that osc_block is a global variable, and thus there's
> >> no way to prove __restrict__ on it.
> >>
> >> -gabriel
> >
> > fields of structs are not unaliased, even when the pointer to the struct
> > is __restrict__
> 
> did you check http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14187?

sure. its marked as fixed, and it seems to be fixed.
the thing i am talking about is not a bug.

-- 
torben Hohn



More information about the Linux-audio-dev mailing list