This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Sorry to mention aliasing again, but is the standard IN6_ARE_ADDR_EQUAL really wrong?
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: "Paul Koning" <Paul_Koning at dell dot com>
- Cc: gcc at gcc dot gnu dot org, "Andreas Schwab" <schwab at linux-m68k dot org>, "Andrew Haley" <aph at redhat dot com>, "Dave Korn" <dave dot korn dot cygwin at googlemail dot com>
- Date: Sun, 10 Jan 2010 15:46:50 +0100
- Subject: Re: Sorry to mention aliasing again, but is the standard IN6_ARE_ADDR_EQUAL really wrong?
- References: <4B491A00.5090502@gmail.com> <m2y6k6f3z0.fsf@igel.home> <D8CEBB6AE9D43848BD2220619A43F32649ECF1@M31.equallogic.com>
> The aliasing rules treat "char" specially because char is a bit like a
> "poor main's void".
Not symmetrically though, only for the type of the lvalue expression used to
access the object (C99 6.5.7).
--
Eric Botcazou