This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: mips64 n32 and n64 support in dl-machine.h
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: Andreas Schwab <schwab at suse dot de>, Andreas Jaeger <aj at suse dot de>, libc-alpha at sources dot redhat dot com
- Date: 14 Mar 2003 07:23:15 -0300
- Subject: Re: mips64 n32 and n64 support in dl-machine.h
- Organization: GCC Team, Red Hat
- References: <200303140956.h2E9uEL23628@magilla.sf.frob.com>
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