------- Comment #2 from joseph at codesourcery dot com  2006-09-26 21:01 -------
Subject: Re:  -fno-strict-aliasing disables restrict

On Tue, 26 Sep 2006, pinskia at gcc dot gnu dot org wrote:

> And this is not a bug, restrict can be ignored by a compiler in terms of
> optimization which is what is happening with -fno-strict-aliasing.

Of course it's a bug.  -fno-strict-aliasing enables a particular language 
dialect without the type-based alias rules.  Nothing in the documentation 
of -fno-strict-aliasing says that dialect lacks the restrict rules.  So 
either it's a missed-optimization bug or a doc bug; I think the former.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29239

Reply via email to