diff options
Diffstat (limited to 'newlib/libc/machine/arm/memchr.S')
-rw-r--r-- | newlib/libc/machine/arm/memchr.S | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/newlib/libc/machine/arm/memchr.S b/newlib/libc/machine/arm/memchr.S index a17dfa314..56bfef09a 100644 --- a/newlib/libc/machine/arm/memchr.S +++ b/newlib/libc/machine/arm/memchr.S @@ -45,10 +45,8 @@ @ Make conditional on CPU type @ tidy -@ This code requires armv6t2 or later. Uses Thumb2. - .syntax unified - .arch armv6t2 + .arch armv7-a #include "arm_asm.h" @@ -164,19 +162,5 @@ 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 |