On Tue, 2003-02-04 at 21:25, Pawel Salek wrote:
> On 2003.02.04 19:06 Michel Dänzer wrote:
> > 
> > And there's even more: newer compilers seem to optimize away some of
> > the
> > reads with strict aliasing. I thought I'd steal some code from the
> > kernel to detect if the compiler supports -fno-strict-aliasing, but it
> > looks like it just uses that unconditionally. We probably want to do
> > the
> > same for the DRM at least? AFAIR it's been supported since early 2.95.
> 
> Isn't the volatile keyword the right way to disable such optimizations?

The problem with strict aliasing is slightly different, though I don't
pretend to understand it fully, so far, what I've figured out is that
it's the definitive enemy of anybody doing typecasts, like we do
regulary in drivers.

Ben.



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to