Re: Problem with -O3 and int to pointer (64bits)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Benjamin Grange wrote:
On 11/3/06, Andrew Haley <aph@xxxxxxxxxx> wrote:
This is a bug in your code.

Do you see a problem in this line?:
(void *)  (unsigned long)(*(((unsigned int *)&a)));

It's not C++. I guess you intend to avoid platforms where there is a size problem with this conversion. On other platforms, for it to have a chance of working, you would have to set -fno-strict-aliasing.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux