This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: aliasing warnings [patch]


> >   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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]