On 09.25, Benjamin Pflugmann wrote:
> Hi!
> 
> On Wed 2003-09-24 at 12:17:12 +0200, [EMAIL PROTECTED] wrote:
> > Hi.
> > 
> > What does this cryptic gcc error mean:
> > 
> > dereferencing type-punned pointer will break strict-aliasing rules
> > 
> > ?
> 
> A IMHO quite good, albeit quite technical, explanation I found:
> 
>   http://www.ethereal.com/lists/ethereal-dev/200309/msg00343.html
> 
> AFAIU, one work-around is to tell gcc 3.3 to do not expect
> strict-aliasing:
> 
>   -fno-strict-aliasing
> 

If only optimization was the problem... with that kind of casts
you can have a pointer to some data type unaligned with respect
to the needs of the arch for that data type. 

-- 
J.A. Magallon <jamagallon()able!es>     \                 Software is like sex:
werewolf!able!es                         \           It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.23-pre5-jam1 (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk))

Reply via email to