ISO Aliasing rules question
Mark Mitchell
mark@codesourcery.com
Fri Feb 21 19:16:00 GMT 2003
--On Friday, February 21, 2003 10:16:02 AM -0700 "law@redhat.com"
<law@redhat.com> wrote:
> Is this correct? Or is my recollection of the ISO standard incorrect
> here?
This is tricky. In general, you're right -- the structure of the type
doesn't matter, only the name.
But, then there's the "common initial sequence" stuff -- which doesn't
apply in your example, but can in other palces. See 6.5.2.3 in your C99
standard for details.
Bottom line: the optimization in the code you showed is correct.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc
mailing list