This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Strict aliasing violation?


On Tue, Sep 11, 2012 at 8:06 AM, Marc Glisse <marc.glisse@inria.fr> wrote:
>
> I thought char was the type that can alias anything (so the optimizer stays
> clear).

Not quite.  A char* pointer can alias anything.  The original code is
using a char[64] array; that type is not special when it comes to
aliasing.

Ian


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