Roland Scheidegger wrote:
> Keith,
>
> I think there might be some slight issue with some of the changes in the
> drivers I did. In particular, I was under the impression it would be ok
> to do something like
> union a_union {
> int i;
> double d;
> };
> int f() {
> double d = 3.0;
> return ((union a_union *) &d)->i;
> };
> but in fact gcc manpage tells me it's not (the example is from gcc 4.4
> manpage)
I think the issue you are describing is explained here:
http://patrakov.blogspot.com/2009/03/dont-use-old-dtoac.html
Also note the link he posts to the GCC manual:
http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/Optimize-Options.html#index-fstrict_002daliasing-721
Martin
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev