This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: I have a bad day, output is not the same, in pointer to unsigned long long int bits field.
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Fran <e_agf at yahoo dot es>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Aug 2005 07:42:12 -0400
- Subject: Re: I have a bad day, output is not the same, in pointer to unsigned long long int bits field.
- References: <1124042280.4047.5.camel@localhost>
On Aug 14, 2005, at 1:57 PM, Fran wrote:
u = (unsigned long long int *) &ull;
You are violating C aliasing rules. Either use an union or
-fno-strict-aliasing.
-- Pinski