diff options
Diffstat (limited to 'newlib/libc/machine/arm/memchr.S')
-rw-r--r-- | newlib/libc/machine/arm/memchr.S | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/newlib/libc/machine/arm/memchr.S b/newlib/libc/machine/arm/memchr.S index 1ba826825..a17dfa314 100644 --- a/newlib/libc/machine/arm/memchr.S +++ b/newlib/libc/machine/arm/memchr.S @@ -164,5 +164,19 @@ memchr: pop {r4,r5,r6,r7} subs r0,r0,#1 bx lr - +#else + /* For an older CPU we just fall back to the .c code. */ + + /* Leave this field blank. So the memchr() is not defined, and this will + automatically pull in the default C definition of memchr() from + ../../string/memchr.c. No need to include this file explicitely. + The lib_a-memchr.o will not be generated, so it won't replace the + default lib_a-memchr.o which is generated by ../../string/memchr.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-memchr.o to be generated. + */ #endif |