This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Strict aliasing affects glibc 2.1.1 as well as Linux
- To: jsm28 at cam dot ac dot uk
- Subject: Re: Strict aliasing affects glibc 2.1.1 as well as Linux
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 19 Jul 1999 14:08:35 -0700
- Cc: libc-alpha at sourceware dot cygnus dot com, gcc at egcs dot cygnus dot 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