diff options
Diffstat (limited to 'newlib/libc/machine/arm/memcpy.S')
-rw-r--r-- | newlib/libc/machine/arm/memcpy.S | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/newlib/libc/machine/arm/memcpy.S b/newlib/libc/machine/arm/memcpy.S index 734a19776..399752424 100644 --- a/newlib/libc/machine/arm/memcpy.S +++ b/newlib/libc/machine/arm/memcpy.S @@ -27,7 +27,19 @@ */ #if defined (__OPTIMIZE_SIZE__) || defined (PREFER_SIZE_OVER_SPEED) - /* Do nothing here. See memcpy-stub.c in the same directory. */ + /* Leave this field blank. So the memcpy() is not defined, and this will + automatically pull in the default C definition of memcpy() from + ../../string/memcpy.c. No need to include this file explicitely. + The lib_a-memcpy.o will not be generated, so it won't replace the default + lib_a-memcpy.o which is generated by ../../string/memcpy.c. + See the commands in configure.in and Makefile.am for more details. + + However, if we need to rewrite this function to be more efficient, we + can add the corresponding assembly code into this field and change the + commands in configure.in and Makefile.am to allow the corresponding + lib_a-memcpy.o to be generated. + */ + #elif defined (__ARM_ARCH_7A__) && defined (__ARM_FEATURE_UNALIGNED) #include "memcpy-armv7a.S" @@ -35,5 +47,5 @@ #include "memcpy-armv7m.S" #else - /* Do nothing here. See memcpy-stub.c in the same directory. */ + /* Leave this filed blank. See the commands above. */ #endif |