This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH:[darwin] fix load of a misaligned double word
Bradley Lucier writes:
>
> So it comes down to a quality of implementation question. You're
> saying that my "implementation defined" code is clearly wrong, and
> everyone else's "implementation defined" conversion between pointers
> and ints is OK; I have yet to be convinced.
I don't understand your point. If it is true, as I maintain, that
performing arithmetic on an int* and then using the resulting pointer
as a double* is undefined, then the code you present is undefined.
That isn't a quality of implementation issue: the code in question
simply doesn't mean anything.
Andrew.