mips64 n32 and n64 support in dl-machine.h

Alexandre Oliva aoliva@redhat.com
Fri Mar 14 10:23:00 GMT 2003


On Mar 14, 2003, Roland McGrath <roland@redhat.com> wrote:

>> Hmm...  Good point.  As far as I can tell from looking at
>> expand_builtin_memcpy, casting the possibly-mis-aligned pointer to
>> (char*) should be enough to fix it, no?

> That's what the C standard says.

I can't find any such language in the standard.  Besides, the Standard
knows nothing of __builtin_memcpy: that's a GCC extension :-)  What
the Standard says about memcpy() could be relevant, to a point, but
all it seems to say is that memcpy copies the given number of
characters from source to dest.  No mention of alignment, since it's
all accessed as char anyway.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer



More information about the Libc-alpha mailing list