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?
Andrew Haley <aph@redhat.com> writes:
> On 01/10/2010 12:39 PM, Andreas Schwab wrote:
>> Andrew Haley <aph@redhat.com> writes:
>>
>>> Why do you say the effective type is different?
>>
>> The object type is uint8_t, but accessed as uint32_t. That is
>> undefined.
>
> Unless uint8_t is a character type, as I understand it.
In which way does it make a difference? For aliasing consideration,
only the type of access matters.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."