This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Strict aliasing affects glibc 2.1.1 as well as Linux
- To: jsm28@cam.ac.uk
- Subject: Re: Strict aliasing affects glibc 2.1.1 as well as Linux
- From: Mark Mitchell <mark@codesourcery.com>
- Date: Mon, 19 Jul 1999 14:08:35 -0700
- Cc: libc-alpha@sourceware.cygnus.com, gcc@egcs.cygnus.com
- Organization: CodeSourcery, LLC
- References: <Pine.SOL.3.95q.990719214140.24552A-100000@red.csi.cam.ac.uk>
I wonder if we shouldn't just implement __builtin_memcpy, ala
__builtin_memset, and then let Linux, glibc, etc. use it. By doing
this internally, we would a) avoid the aliasing issues, and b) allow
the back-end maintainers to provide implementations that work as well
as possible on their particular targets. There's no reason that glibc
authors should have to write conditionalized macros in order to get
the best memcpy performance on different machines, is there?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com