This is the mail archive of the libc-alpha@sourceware.cygnus.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]

Re: Strict aliasing affects glibc 2.1.1 as well as Linux



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

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