From 42de6f508515c927e51e0cafa41aeed7ba204f0b Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Tue, 10 Nov 2015 14:04:54 +0000 Subject: [PATCH] [ARM] Rename strlen to strlen-stub.c In order to maintain consistency both within machine/arm and between machine/arm and machine/aarch64, rename the 'c' stub to -stub.c. Tested by building newlib and comparing libc.a binaries before and after for all permutations of: Architectures: armv4 armv4t armv5 armv5t armv5te armv6 armv6j armv6k armv6z armv6kz armv6t2 armv6-m armv6s-m armv7 armv7-a armv7ve armv7-r armv7-m armv7e-m armv8-a iwmmxt iwmmxt2 ISAs: thumb arm Optimization Levels: Os O2 Excluding: armv6s-m -mthumb armv6-m -mthumb armv6zk -mthumb armv6z -mthumb armv6k -mthumb armv6j -mthumb --- newlib/ChangeLog | 7 +++++++ newlib/libc/machine/arm/Makefile.am | 2 +- newlib/libc/machine/arm/Makefile.in | 4 ++-- newlib/libc/machine/arm/{strlen.c => strlen-stub.c} | 0 4 files changed, 10 insertions(+), 3 deletions(-) rename newlib/libc/machine/arm/{strlen.c => strlen-stub.c} (100%) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index fcc915457..7c2f38aa3 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,10 @@ +2015-11-13 Marcus Shawcroft + + * libc/machine/arm/Makefile.am: Rename strlen.c to strlen-stub.c + * libc/machine/arm/Makefile.in: Regenerate. + * libc/machine/arm/strlen.c: Rename to... + * libc/machine/arm/strlen-stub.c: ... this. + 2015-11-13 Marcus Shawcroft * libc/machine/arm/Makefile.am: Drop STRLEN_SRC and STRLEN_OBJ. diff --git a/newlib/libc/machine/arm/Makefile.am b/newlib/libc/machine/arm/Makefile.am index d920e6ee6..212a3dc64 100644 --- a/newlib/libc/machine/arm/Makefile.am +++ b/newlib/libc/machine/arm/Makefile.am @@ -16,7 +16,7 @@ lib_a_SOURCES += memchr-stub.c lib_a_SOURCES += memchr.S lib_a_SOURCES += memcpy-stub.c lib_a_SOURCES += memcpy.S -lib_a_SOURCES += strlen.c +lib_a_SOURCES += strlen-stub.c lib_a_CCASFLAGS=$(AM_CCASFLAGS) lib_a_CFLAGS = $(AM_CFLAGS) diff --git a/newlib/libc/machine/arm/Makefile.in b/newlib/libc/machine/arm/Makefile.in index 87a3591ae..b43c422a3 100644 --- a/newlib/libc/machine/arm/Makefile.in +++ b/newlib/libc/machine/arm/Makefile.in @@ -78,7 +78,7 @@ am_lib_a_OBJECTS = lib_a-setjmp.$(OBJEXT) lib_a-access.$(OBJEXT) \ lib_a-aeabi_memset.$(OBJEXT) lib_a-aeabi_memset-soft.$(OBJEXT) \ lib_a-aeabi_memclr.$(OBJEXT) lib_a-memchr-stub.$(OBJEXT) \ lib_a-memchr.$(OBJEXT) lib_a-memcpy-stub.$(OBJEXT) \ - lib_a-memcpy.$(OBJEXT) lib_a-strlen.$(OBJEXT) + lib_a-memcpy.$(OBJEXT) lib_a-strlen-stub.$(OBJEXT) lib_a_OBJECTS = $(am_lib_a_OBJECTS) DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = @@ -209,7 +209,7 @@ lib_a_SOURCES = setjmp.S access.c strcmp.S strcpy.c strlen-armv7.S \ aeabi_memcpy.c aeabi_memcpy-armv7a.S aeabi_memmove.c \ aeabi_memmove-soft.S aeabi_memset.c aeabi_memset-soft.S \ aeabi_memclr.c memchr-stub.c memchr.S memcpy-stub.c memcpy.S \ - strlen.c + strlen-stub.c lib_a_CCASFLAGS = $(AM_CCASFLAGS) lib_a_CFLAGS = $(AM_CFLAGS) ACLOCAL_AMFLAGS = -I ../../.. -I ../../../.. diff --git a/newlib/libc/machine/arm/strlen.c b/newlib/libc/machine/arm/strlen-stub.c similarity index 100% rename from newlib/libc/machine/arm/strlen.c rename to newlib/libc/machine/arm/strlen-stub.c