This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: aliasing warnings [patch]
- To: rth AT cygnus dot com (Richard Henderson)
- Subject: Re: aliasing warnings [patch]
- From: Joern Rennecke <amylaar AT cygnus.co.uk>
- Date: Thu, 16 Sep 1999 22:16:04 +0100 (BST)
- Cc: mark AT codesourcery dot com, zack AT bitmover dot com, jason AT cygnus dot com, egcs AT egcs.cygnus dot com, egcs-patches AT egcs.cygnus dot com
> > char c[4];
> > *((int *) &c[0]) = 3;
>
> Modulo the alignment argument, isn't this really ok?
> True, the variable has `char' type, but the storage
> is only accessed as `int'.
But it might be too small for an int.