Gentoo Archives: gentoo-amd64

From: Frank Peters <frank.peters@×××××××.net>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Re: GCC-4.5.2 Has Serious Problems
Date: Fri, 01 Jul 2011 00:27:16
In Reply to: [gentoo-amd64] Re: GCC-4.5.2 Has Serious Problems by Nikos Chantziaras
On Fri, 01 Jul 2011 02:44:36 +0300
Nikos Chantziaras <realnc@×××××.de> wrote:

> >> unsigned long int *px = (unsigned long int*)&x;
> And here you can read more thorough information about strict aliasing: > > >
Thanks for this link. I can see what's happening now. These types of pointers are admittedly unusual, but it's the only quick way I know to load a double variable with a certain bit pattern, or to convert big/small endian values, etc. I ordinarily don't do these things, but when I do I 'll keep this aliasing in mind. Frank Peters