[Debburn-devel] Re: [PATCH] fixes for aliasing bugs

Peter Samuelson peter at p12n.org
Thu Sep 28 05:33:05 UTC 2006


[neologix at free.fr]
> It's not just "not strict ANSI C", it's just false.  When performing
> arithmetic on pointers, the compiler _needs_ the type of the pointed
> to objects to do the calculations (it multiplies the offest by the
> object's size).

When he said it's "not strict ANSI C", he meant that it's a gcc
extension.  gcc explicitly supports this functionality, treating
sizeof(void) as sizeof(char) for the purpose of pointer arithmetic.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debburn-devel/attachments/20060928/7863d733/attachment.pgp


More information about the Debburn-devel mailing list