Subject: Re: libGLU in mesa-dri
To: None <tech-x11@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-x11
Date: 04/17/2007 00:38:00
On Mon, Apr 16, 2007 at 06:24:51PM -0400, Blair Sadewitz wrote:
> I also should mention that we need to build this with
> -Wstrict-aliasing (or -Wstrict-aliasing=2) and add
> -fno-strict-aliasing for the files that generate warnings.  It might
> be a good idea to build the whole thing without strict aliasing, as
> the compiler can't catch every case.

Unless the code plays *very* evil casting games via uintptr_t (and those
fall into the category of code might know what he is doing), GCC 4.1
does detect all violations.

Joerg