This is the mail archive of the gcc-patches@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: PATCH:[darwin] fix load of a misaligned double word



On Dec 31, 2003, at 9:22 AM, Andrew Haley wrote:


Regardless of whether this is an aliasing violation, constructing a
misaligned pointer by use of pointer casts and then using that pointer
is not well-defined.

The pointer is not misaligned.


(C99 Section 6.2.2.3, Pointers.)

I have a document n2794.pdf, which seems to be a draft of the standard, and can't find the section you're talking about.


Brad


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