Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-amd64
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-amd64@g.o
From: Frank Peters <frank.peters@...>
Subject: Re: Re: GCC-4.5.2 Has Serious Problems
Date: Thu, 30 Jun 2011 20:25:44 -0400
On Fri, 01 Jul 2011 02:44:36 +0300
Nikos Chantziaras <realnc@...> wrote:

> >> unsigned long int *px = (unsigned long int*)&x;

> And here you can read more thorough information about strict aliasing:
> 
>    http://labs.qt.nokia.com/2011/06/10/type-punning-and-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



References:
GCC-4.5.2 Has Serious Problems
-- Frank Peters
Re: GCC-4.5.2 Has Serious Problems
-- Nikos Chantziaras
Re: GCC-4.5.2 Has Serious Problems
-- Nikos Chantziaras
Navigation:
Lists: gentoo-amd64: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: GCC-4.5.2 Has Serious Problems
Next by thread:
Re: Re: GCC-4.5.2 Has Serious Problems
Previous by date:
Re: GCC-4.5.2 Has Serious Problems
Next by date:
Re: GCC-4.5.2 Has Serious Problems


Updated Jun 28, 2012

Summary: Archive of the gentoo-amd64 mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.