This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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: mips64 n32 and n64 support in dl-machine.h


On Mar 14, 2003, Roland McGrath <roland at redhat dot 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 at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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