From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id B4D293858D3C; Wed, 9 Feb 2022 00:05:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4D293858D3C Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib: drop unused xscale subdir X-Act-Checkin: newlib-cygwin X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: 7e6422fd2a8595c781cbff0d37570bf9e8ba5fc8 X-Git-Newrev: 8fff0aac0ac4c21569cff1204c5085ff501cebe6 Message-Id: <20220209000537.B4D293858D3C@sourceware.org> Date: Wed, 9 Feb 2022 00:05:37 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2022 00:05:37 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D8fff0aac0ac= 4c21569cff1204c5085ff501cebe6 commit 8fff0aac0ac4c21569cff1204c5085ff501cebe6 Author: Mike Frysinger Date: Mon Feb 7 05:19:36 2022 -0500 newlib: drop unused xscale subdir =20 This target was deleted in 2011 in 25fa7e5ad63d97d00deef1c9eddb346d11, but this directory was missed. Punt it too. Diff: --- newlib/libc/machine/xscale/Makefile.am | 12 - newlib/libc/machine/xscale/Makefile.in | 598 -----------------------= ---- newlib/libc/machine/xscale/machine/profile.h | 88 ---- newlib/libc/machine/xscale/memchr.c | 102 ----- newlib/libc/machine/xscale/memcmp.c | 112 ----- newlib/libc/machine/xscale/memcpy.c | 103 ----- newlib/libc/machine/xscale/memmove.c | 122 ------ newlib/libc/machine/xscale/memset.c | 91 ---- newlib/libc/machine/xscale/setjmp.S | 137 ------ newlib/libc/machine/xscale/strchr.c | 73 ---- newlib/libc/machine/xscale/strcmp.c | 107 ----- newlib/libc/machine/xscale/strcpy.c | 62 --- newlib/libc/machine/xscale/strlen.c | 100 ----- newlib/libc/machine/xscale/xscale.h | 31 -- 14 files changed, 1738 deletions(-) diff --git a/newlib/libc/machine/xscale/Makefile.am b/newlib/libc/machine/x= scale/Makefile.am deleted file mode 100644 index 913d162d4..000000000 --- a/newlib/libc/machine/xscale/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -## Process this file with automake to generate Makefile.in - -AM_CPPFLAGS =3D $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) - -AM_CCASFLAGS =3D $(AM_CPPFLAGS) - -noinst_LIBRARIES =3D lib.a - -lib_a_SOURCES =3D \ - memchr.c memcmp.c memcpy.c memmove.c memset.c \ - strchr.c strcmp.c strcpy.c strlen.c setjmp.S -lib_a_CFLAGS =3D $(AM_CFLAGS) diff --git a/newlib/libc/machine/xscale/Makefile.in b/newlib/libc/machine/x= scale/Makefile.in deleted file mode 100644 index ef68dae0f..000000000 --- a/newlib/libc/machine/xscale/Makefile.in +++ /dev/null @@ -1,598 +0,0 @@ -# Makefile.in generated by automake 1.15.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2017 Free Software Foundation, Inc. - -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH =3D @srcdir@ -am__is_gnu_make =3D { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -am__make_running_with_option =3D \ - case $${target_option-} in \ - ?) ;; \ - *) echo "am__make_running_with_option: internal error: invalid" \ - "target option '$${target_option-}' specified" >&2; \ - exit 1;; \ - esac; \ - has_opt=3Dno; \ - sane_makeflags=3D$$MAKEFLAGS; \ - if $(am__is_gnu_make); then \ - sane_makeflags=3D$$MFLAGS; \ - else \ - case $$MAKEFLAGS in \ - *\\[\ \ ]*) \ - bs=3D\\; \ - sane_makeflags=3D`printf '%s\n' "$$MAKEFLAGS" \ - | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ - esac; \ - fi; \ - skip_next=3Dno; \ - strip_trailopt () \ - { \ - flg=3D`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ - }; \ - for flg in $$sane_makeflags; do \ - test $$skip_next =3D yes && { skip_next=3Dno; continue; }; \ - case $$flg in \ - *=3D*|--*) continue;; \ - -*I) strip_trailopt 'I'; skip_next=3Dyes;; \ - -*I?*) strip_trailopt 'I';; \ - -*O) strip_trailopt 'O'; skip_next=3Dyes;; \ - -*O?*) strip_trailopt 'O';; \ - -*l) strip_trailopt 'l'; skip_next=3Dyes;; \ - -*l?*) strip_trailopt 'l';; \ - -[dEDm]) skip_next=3Dyes;; \ - -[JT]) skip_next=3Dyes;; \ - esac; \ - case $$flg in \ - *$$target_option*) has_opt=3Dyes; break;; \ - esac; \ - done; \ - test $$has_opt =3D yes -am__make_dryrun =3D (target_option=3Dn; $(am__make_running_with_option)) -am__make_keepgoing =3D (target_option=3Dk; $(am__make_running_with_option)) -pkgdatadir =3D $(datadir)/@PACKAGE@ -pkgincludedir =3D $(includedir)/@PACKAGE@ -pkglibdir =3D $(libdir)/@PACKAGE@ -pkglibexecdir =3D $(libexecdir)/@PACKAGE@ -am__cd =3D CDPATH=3D"$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA =3D $(install_sh) -c -m 644 -install_sh_PROGRAM =3D $(install_sh) -c -install_sh_SCRIPT =3D $(install_sh) -c -INSTALL_HEADER =3D $(INSTALL_DATA) -transform =3D $(program_transform_name) -NORMAL_INSTALL =3D : -PRE_INSTALL =3D : -POST_INSTALL =3D : -NORMAL_UNINSTALL =3D : -PRE_UNINSTALL =3D : -POST_UNINSTALL =3D : -build_triplet =3D @build@ -host_triplet =3D @host@ -subdir =3D . -ACLOCAL_M4 =3D $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps =3D $(top_srcdir)/../../../../config/depstand.m4 \ - $(top_srcdir)/../../../../config/lead-dot.m4 \ - $(top_srcdir)/../../../../config/override.m4 \ - $(top_srcdir)/../../../acinclude.m4 $(top_srcdir)/configure.ac -am__configure_deps =3D $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON =3D $(srcdir)/Makefile.am $(top_srcdir)/configure \ - $(am__configure_deps) -am__CONFIG_DISTCLEAN_FILES =3D config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs =3D $(SHELL) $(top_srcdir)/../../../../mkinstalldirs -CONFIG_CLEAN_FILES =3D -CONFIG_CLEAN_VPATH_FILES =3D -LIBRARIES =3D $(noinst_LIBRARIES) -ARFLAGS =3D cru -AM_V_AR =3D $(am__v_AR_@AM_V@) -am__v_AR_ =3D $(am__v_AR_@AM_DEFAULT_V@) -am__v_AR_0 =3D @echo " AR " $@; -am__v_AR_1 =3D=20 -lib_a_AR =3D $(AR) $(ARFLAGS) -lib_a_LIBADD =3D -am_lib_a_OBJECTS =3D lib_a-memchr.$(OBJEXT) lib_a-memcmp.$(OBJEXT) \ - lib_a-memcpy.$(OBJEXT) lib_a-memmove.$(OBJEXT) \ - lib_a-memset.$(OBJEXT) lib_a-strchr.$(OBJEXT) \ - lib_a-strcmp.$(OBJEXT) lib_a-strcpy.$(OBJEXT) \ - lib_a-strlen.$(OBJEXT) setjmp.$(OBJEXT) -lib_a_OBJECTS =3D $(am_lib_a_OBJECTS) -AM_V_P =3D $(am__v_P_@AM_V@) -am__v_P_ =3D $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 =3D false -am__v_P_1 =3D : -AM_V_GEN =3D $(am__v_GEN_@AM_V@) -am__v_GEN_ =3D $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 =3D @echo " GEN " $@; -am__v_GEN_1 =3D=20 -AM_V_at =3D $(am__v_at_@AM_V@) -am__v_at_ =3D $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 =3D @ -am__v_at_1 =3D=20 -DEFAULT_INCLUDES =3D -I.@am__isrc@ -depcomp =3D -am__depfiles_maybe =3D -CPPASCOMPILE =3D $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) -AM_V_CPPAS =3D $(am__v_CPPAS_@AM_V@) -am__v_CPPAS_ =3D $(am__v_CPPAS_@AM_DEFAULT_V@) -am__v_CPPAS_0 =3D @echo " CPPAS " $@; -am__v_CPPAS_1 =3D=20 -AM_V_lt =3D $(am__v_lt_@AM_V@) -am__v_lt_ =3D $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 =3D --silent -am__v_lt_1 =3D=20 -COMPILE =3D $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -AM_V_CC =3D $(am__v_CC_@AM_V@) -am__v_CC_ =3D $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 =3D @echo " CC " $@; -am__v_CC_1 =3D=20 -CCLD =3D $(CC) -LINK =3D $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD =3D $(am__v_CCLD_@AM_V@) -am__v_CCLD_ =3D $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 =3D @echo " CCLD " $@; -am__v_CCLD_1 =3D=20 -SOURCES =3D $(lib_a_SOURCES) -am__can_run_installinfo =3D \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -am__tagged_files =3D $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -# Read a list of newline-separated strings from the standard input, -# and print each of them once, without duplicates. Input order is -# *not* preserved. -am__uniquify_input =3D $(AWK) '\ - BEGIN { nonempty =3D 0; } \ - { items[$$0] =3D 1; nonempty =3D 1; } \ - END { if (nonempty) { for (i in items) print i; }; } \ -' -# Make sure the list of sources is unique. This is necessary because, -# e.g., the same source file might be shared among _SOURCES variables -# for different programs/libraries. -am__define_uniq_tagged_files =3D \ - list=3D'$(am__tagged_files)'; \ - unique=3D`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | $(am__uniquify_input)` -ETAGS =3D etags -CTAGS =3D ctags -CSCOPE =3D cscope -AM_RECURSIVE_TARGETS =3D cscope -ACLOCAL =3D @ACLOCAL@ -AMTAR =3D @AMTAR@ -AM_DEFAULT_VERBOSITY =3D @AM_DEFAULT_VERBOSITY@ -AR =3D @AR@ -AS =3D @AS@ -AUTOCONF =3D @AUTOCONF@ -AUTOHEADER =3D @AUTOHEADER@ -AUTOMAKE =3D @AUTOMAKE@ -AWK =3D @AWK@ -CC =3D @CC@ -CCAS =3D @CCAS@ -CCASFLAGS =3D @CCASFLAGS@ -CCDEPMODE =3D @CCDEPMODE@ -CYGPATH_W =3D @CYGPATH_W@ -DEFS =3D @DEFS@ -DEPDIR =3D @DEPDIR@ -ECHO_C =3D @ECHO_C@ -ECHO_N =3D @ECHO_N@ -ECHO_T =3D @ECHO_T@ -INSTALL =3D @INSTALL@ -INSTALL_DATA =3D @INSTALL_DATA@ -INSTALL_PROGRAM =3D @INSTALL_PROGRAM@ -INSTALL_SCRIPT =3D @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM =3D @INSTALL_STRIP_PROGRAM@ -LIBOBJS =3D @LIBOBJS@ -LIBS =3D @LIBS@ -LTLIBOBJS =3D @LTLIBOBJS@ -MAINT =3D @MAINT@ -MAKEINFO =3D @MAKEINFO@ -MKDIR_P =3D @MKDIR_P@ -NEWLIB_CFLAGS =3D @NEWLIB_CFLAGS@ -NO_INCLUDE_LIST =3D @NO_INCLUDE_LIST@ -OBJEXT =3D @OBJEXT@ -PACKAGE =3D @PACKAGE@ -PACKAGE_BUGREPORT =3D @PACKAGE_BUGREPORT@ -PACKAGE_NAME =3D @PACKAGE_NAME@ -PACKAGE_STRING =3D @PACKAGE_STRING@ -PACKAGE_TARNAME =3D @PACKAGE_TARNAME@ -PACKAGE_URL =3D @PACKAGE_URL@ -PACKAGE_VERSION =3D @PACKAGE_VERSION@ -PATH_SEPARATOR =3D @PATH_SEPARATOR@ -RANLIB =3D @RANLIB@ -READELF =3D @READELF@ -SET_MAKE =3D @SET_MAKE@ -SHELL =3D @SHELL@ -STRIP =3D @STRIP@ -VERSION =3D @VERSION@ -abs_builddir =3D @abs_builddir@ -abs_srcdir =3D @abs_srcdir@ -abs_top_builddir =3D @abs_top_builddir@ -abs_top_srcdir =3D @abs_top_srcdir@ -aext =3D @aext@ -am__include =3D @am__include@ -am__leading_dot =3D @am__leading_dot@ -am__quote =3D @am__quote@ -am__tar =3D @am__tar@ -am__untar =3D @am__untar@ -bindir =3D @bindir@ -build =3D @build@ -build_alias =3D @build_alias@ -build_cpu =3D @build_cpu@ -build_os =3D @build_os@ -build_vendor =3D @build_vendor@ -builddir =3D @builddir@ -datadir =3D @datadir@ -datarootdir =3D @datarootdir@ -docdir =3D @docdir@ -dvidir =3D @dvidir@ -exec_prefix =3D @exec_prefix@ -host =3D @host@ -host_alias =3D @host_alias@ -host_cpu =3D @host_cpu@ -host_os =3D @host_os@ -host_vendor =3D @host_vendor@ -htmldir =3D @htmldir@ -includedir =3D @includedir@ -infodir =3D @infodir@ -install_sh =3D @install_sh@ -libdir =3D @libdir@ -libexecdir =3D @libexecdir@ -libm_machine_dir =3D @libm_machine_dir@ -localedir =3D @localedir@ -localstatedir =3D @localstatedir@ -lpfx =3D @lpfx@ -machine_dir =3D @machine_dir@ -mandir =3D @mandir@ -mkdir_p =3D @mkdir_p@ -newlib_basedir =3D @newlib_basedir@ -oext =3D @oext@ -oldincludedir =3D @oldincludedir@ -pdfdir =3D @pdfdir@ -prefix =3D @prefix@ -program_transform_name =3D @program_transform_name@ -psdir =3D @psdir@ -sbindir =3D @sbindir@ -shared_machine_dir =3D @shared_machine_dir@ -sharedstatedir =3D @sharedstatedir@ -srcdir =3D @srcdir@ -sys_dir =3D @sys_dir@ -sysconfdir =3D @sysconfdir@ -target_alias =3D @target_alias@ -top_build_prefix =3D @top_build_prefix@ -top_builddir =3D @top_builddir@ -top_srcdir =3D @top_srcdir@ -AM_CPPFLAGS =3D $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) -AM_CCASFLAGS =3D $(AM_CPPFLAGS) -noinst_LIBRARIES =3D lib.a -lib_a_SOURCES =3D \ - memchr.c memcmp.c memcpy.c memmove.c memset.c \ - strchr.c strcmp.c strcpy.c strlen.c setjmp.S - -lib_a_CFLAGS =3D $(AM_CFLAGS) -ACLOCAL_AMFLAGS =3D -I ../../.. -I ../../../.. -I ../../../../config -CONFIG_STATUS_DEPENDENCIES =3D $(newlib_basedir)/configure.host -all: all-am - -.SUFFIXES: -.SUFFIXES: .S .c .o .obj -am--refresh: Makefile - @: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am_= _configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps'; \ - $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps Makefile';= \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign --ignore-deps Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfil= es_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_mayb= e);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEP= ENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - $(am__cd) $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -$(am__aclocal_m4_deps): - -clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - -lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES) = - $(AM_V_at)-rm -f lib.a - $(AM_V_AR)$(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) - $(AM_V_at)$(RANLIB) lib.a - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -.S.o: - $(AM_V_CPPAS)$(CPPASCOMPILE) -c -o $@ $< - -.S.obj: - $(AM_V_CPPAS)$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -.c.o: - $(AM_V_CC)$(COMPILE) -c -o $@ $< - -.c.obj: - $(AM_V_CC)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` - -lib_a-memchr.o: memchr.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memchr.o `test -f 'memchr.c= ' || echo '$(srcdir)/'`memchr.c - -lib_a-memchr.obj: memchr.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memchr.obj `if test -f 'mem= chr.c'; then $(CYGPATH_W) 'memchr.c'; else $(CYGPATH_W) '$(srcdir)/memchr.c= '; fi` - -lib_a-memcmp.o: memcmp.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memcmp.o `test -f 'memcmp.c= ' || echo '$(srcdir)/'`memcmp.c - -lib_a-memcmp.obj: memcmp.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memcmp.obj `if test -f 'mem= cmp.c'; then $(CYGPATH_W) 'memcmp.c'; else $(CYGPATH_W) '$(srcdir)/memcmp.c= '; fi` - -lib_a-memcpy.o: memcpy.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memcpy.o `test -f 'memcpy.c= ' || echo '$(srcdir)/'`memcpy.c - -lib_a-memcpy.obj: memcpy.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memcpy.obj `if test -f 'mem= cpy.c'; then $(CYGPATH_W) 'memcpy.c'; else $(CYGPATH_W) '$(srcdir)/memcpy.c= '; fi` - -lib_a-memmove.o: memmove.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memmove.o `test -f 'memmove= .c' || echo '$(srcdir)/'`memmove.c - -lib_a-memmove.obj: memmove.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memmove.obj `if test -f 'me= mmove.c'; then $(CYGPATH_W) 'memmove.c'; else $(CYGPATH_W) '$(srcdir)/memmo= ve.c'; fi` - -lib_a-memset.o: memset.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memset.o `test -f 'memset.c= ' || echo '$(srcdir)/'`memset.c - -lib_a-memset.obj: memset.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memset.obj `if test -f 'mem= set.c'; then $(CYGPATH_W) 'memset.c'; else $(CYGPATH_W) '$(srcdir)/memset.c= '; fi` - -lib_a-strchr.o: strchr.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-strchr.o `test -f 'strchr.c= ' || echo '$(srcdir)/'`strchr.c - -lib_a-strchr.obj: strchr.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-strchr.obj `if test -f 'str= chr.c'; then $(CYGPATH_W) 'strchr.c'; else $(CYGPATH_W) '$(srcdir)/strchr.c= '; fi` - -lib_a-strcmp.o: strcmp.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-strcmp.o `test -f 'strcmp.c= ' || echo '$(srcdir)/'`strcmp.c - -lib_a-strcmp.obj: strcmp.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-strcmp.obj `if test -f 'str= cmp.c'; then $(CYGPATH_W) 'strcmp.c'; else $(CYGPATH_W) '$(srcdir)/strcmp.c= '; fi` - -lib_a-strcpy.o: strcpy.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-strcpy.o `test -f 'strcpy.c= ' || echo '$(srcdir)/'`strcpy.c - -lib_a-strcpy.obj: strcpy.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-strcpy.obj `if test -f 'str= cpy.c'; then $(CYGPATH_W) 'strcpy.c'; else $(CYGPATH_W) '$(srcdir)/strcpy.c= '; fi` - -lib_a-strlen.o: strlen.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-strlen.o `test -f 'strlen.c= ' || echo '$(srcdir)/'`strlen.c - -lib_a-strlen.obj: strlen.c - $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(= CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-strlen.obj `if test -f 'str= len.c'; then $(CYGPATH_W) 'strlen.c'; else $(CYGPATH_W) '$(srcdir)/strlen.c= '; fi` - -ID: $(am__tagged_files) - $(am__define_uniq_tagged_files); mkid -fID $$unique -tags: tags-am -TAGS: tags - -tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - set x; \ - here=3D`pwd`; \ - $(am__define_uniq_tagged_files); \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=3D$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: ctags-am - -CTAGS: ctags -ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) - $(am__define_uniq_tagged_files); \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=3D`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" -cscope: cscope.files - test ! -s cscope.files \ - || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(C= SCOPE_ARGS) -clean-cscope: - -rm -f cscope.files -cscope.files: clean-cscope cscopelist -cscopelist: cscopelist-am - -cscopelist-am: $(am__tagged_files) - list=3D'$(am__tagged_files)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir=3D"$(srcdir)" ;; \ - *) sdir=3D$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -rm -f cscope.out cscope.in.out cscope.po.out cscope.files -check-am: all-am -check: check-am -all-am: Makefile $(LIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=3D"$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM=3D"$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=3D= -s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=3D"$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM=3D"$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=3D= -s \ - "INSTALL_PROGRAM_ENV=3DSTRIPPROG=3D'$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . =3D "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f= $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am - -distclean: distclean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \ - clean-cscope clean-generic clean-noinstLIBRARIES cscope \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-tags dvi dvi-am html html-am info \ - info-am install install-am install-data install-data-am \ - install-dvi install-dvi-am install-exec install-exec-am \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ - ps ps-am tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/newlib/libc/machine/xscale/machine/profile.h b/newlib/libc/mac= hine/xscale/machine/profile.h deleted file mode 100644 index 9a68cc86b..000000000 --- a/newlib/libc/machine/xscale/machine/profile.h +++ /dev/null @@ -1,88 +0,0 @@ -/* profile.h - - Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved. -=20 - Permission to use, copy, modify, and distribute this software - is freely granted, provided that this notice is preserved. */ - -#ifndef __XSCALE_PROFILE_H__ -#define __XSCALE_PROFILE_H__ - -/* FIXME: - We need to create a string version of the CPP predefined - __USER_LABEL_PREFIX__ macro. Ideally we would like to - so do something like: - - #if __USER_LABEL_PREFIX__ =3D=3D _ - - but this fails for arm-elf targets because although - __USER_LABEL__PREFIX__ is defined, it is not defined to - a specific value (even 0) and so the above test fails - with: - =20 - operator '=3D=3D' has no left operand - - Instead we have to test the CPP predefined __ELF__ and - rely upon the *assumption* that ELF targets will not use - an underscore prefix and that COFF targets will. */ - -#ifdef __ELF__ -#define FOO "" -#else -#define FOO "_" -#endif - -#define _MCOUNT_DECL(frompc, selfpc) \ -void __attribute__ ((__no_instrument_function__)) \ -mcount_internal (frompc, selfpc) - -/* mcount_internal expects two arguments - r0 frompc (return address for function that call function that calls mc= ount) - r1 selfpc (return address for function that called mcount) - - The frompc is extracted from the stack frames. If the code does not - generate stack frames, then mcount cannot extract this - information. Thus, the -fomit-frame-pointer optimization cannot be - used if a call graph information is required. - - Due to optimizations mcount doesn't set up a new fp. mcount has the fp - of the calling function. - - r0 frompc is from the current frame - r1 selfpc can be obtained directly from lr. */ - -#ifdef __thumb__ -#define MCOUNT \ -void __attribute__ ((__naked__)) \ - __attribute__ ((__no_instrument_function__)) \ -mcount (void) \ -{ \ - __asm__("push {r0, r1, r2, r3, lr};" \ - "add r0, r7, #0;" \ - "beq 1f;" \ - "sub r0, r0, #4;" \ - "ldr r0, [r0];" \ - "1: mov r1, lr;" \ - "bl " FOO "mcount_internal ;" \ - "pop {r0, r1, r2, r3, pc};" \ - ); \ -} -#else -#define MCOUNT \ -void __attribute__ ((__naked__)) \ - __attribute__ ((__no_instrument_function__)) \ -mcount (void) \ -{ \ - __asm__("stmdb sp!, {r0, r1, r2, r3, lr};" \ - "movs r0, fp;" \ - "ldrne r0, [r0, #-4];" \ - "mov r1, lr;" \ - "bl " FOO "mcount_internal ;" \ - "ldmia sp!, {r0, r1, r2, r3, pc};" \ - ); \ -} -#endif - -#define FUNCTION_ALIGNMENT 2 - -#endif /* !__XSCALE_PROFILE_H__ */ diff --git a/newlib/libc/machine/xscale/memchr.c b/newlib/libc/machine/xsca= le/memchr.c deleted file mode 100644 index 9bf18268b..000000000 --- a/newlib/libc/machine/xscale/memchr.c +++ /dev/null @@ -1,102 +0,0 @@ -#if defined __thumb__ - -#include "../../string/memchr.c" - -#else - -#include -#include "xscale.h" - -void * -memchr (const void *start, int c, size_t len) -{ - const char *str =3D start; - - if (len =3D=3D 0) - return 0; - - asm (PRELOADSTR ("%0") : : "r" (start)); - - c &=3D 0xff; - -#ifndef __OPTIMIZE_SIZE__ - /* Skip unaligned part. */ - if ((long)str & 3) - { - str--; - do - { - if (*++str =3D=3D c) - return (void *)str; - } - while (((long)str & 3) !=3D 0 && --len > 0); - } - - if (len > 3) - { - unsigned int c2 =3D c + (c << 8); - c2 +=3D c2 << 16; - - /* Load two constants: - R7 =3D 0xfefefeff [ =3D=3D ~(0x80808080 << 1) ] - R6 =3D 0x80808080 */ - - asm ( - "mov r6, #0x80\n\ - add r6, r6, #0x8000\n\ - add r6, r6, r6, lsl #16\n\ - mvn r7, r6, lsl #1\n\ -\n\ -0:\n\ - cmp %1, #0x7\n\ - bls 1f\n\ -\n\ - ldmia %0!, { r3, r9 }\n\ -" PRELOADSTR ("%0") "\n\ - sub %1, %1, #8\n\ - eor r3, r3, %2\n\ - eor r9, r9, %2\n\ - add r2, r3, r7\n\ - add r8, r9, r7\n\ - bic r2, r2, r3\n\ - bic r8, r8, r9\n\ - and r1, r2, r6\n\ - and r9, r8, r6\n\ - orrs r1, r1, r9\n\ - beq 0b\n\ -\n\ - add %1, %1, #8\n\ - sub %0, %0, #8\n\ -1:\n\ - cmp %1, #0x3\n\ - bls 2f\n\ -\n\ - ldr r3, [%0], #4\n\ -" PRELOADSTR ("%0") "\n\ - sub %1, %1, #4\n\ - eor r3, r3, %2\n\ - add r2, r3, r7\n\ - bic r2, r2, r3\n\ - ands r1, r2, r6\n\ - beq 1b\n\ -\n\ - sub %0, %0, #4\n\ - add %1, %1, #4\n\ -2:\n\ -" - : "=3D&r" (str), "=3D&r" (len) - : "r" (c2), "0" (str), "1" (len) - : "r1", "r2", "r3", "r6", "r7", "r8", "r9", "cc"); - } -#endif - - while (len-- > 0) - {=20 - if (*str =3D=3D c) - return (void *)str; - str++; - }=20 - - return 0; -} -#endif diff --git a/newlib/libc/machine/xscale/memcmp.c b/newlib/libc/machine/xsca= le/memcmp.c deleted file mode 100644 index 1eba4b8dd..000000000 --- a/newlib/libc/machine/xscale/memcmp.c +++ /dev/null @@ -1,112 +0,0 @@ -#if defined __thumb__ - -#include "../../string/memcmp.c" - -#else - -#include -#include "xscale.h" - -int -memcmp (const void * s1, const void * s2, size_t len) -{ - int result; - asm ( -#ifndef __OPTIMIZE_SIZE__=20 -"\n\ - cmp %2, #0x3 @ Is the length a multiple of four ?\n\ - bls 6f @ no =3D goto SLOW CHECK\n\ - and r2, %0, #0x3 @ get alignment of first pointer\n\ - and r3, %1, #0x3 @ get alignment of second pointer\n\ - cmp r2, r3 @ Do the two pointers share the same alignment ?\n\ - bne 6f @ no =3D goto SLOW CHECK\n\ - mov lr, %0 @ copy first pointer into LR\n\ - mov r4, %1 @ copy second pointer into R4\n\ - cmp r2, #0x0 @ Are we comparing word aligned pointers ?\n\ - beq 3f @ yes =3D goto START WORD CHECK LOOP\n\ - b 1f @ jump to LOOP TEST\n\ -0: @ LOOP START\n\ - ldrb r2, [lr], #1 @ load byte from LR, post inc.\n\ -" PRELOADSTR("lr") " @ preload\n\ - ldrb r3, [r4], #1 @ load byte from R4, post inc.\n\ -" PRELOADSTR("r4") " @ preload\n\ - cmp r2, r3 @ are the two bytes the same ?\n\ - bne 5f @ no =3D goto EXIT\n\ - tst lr, #0x3 @ has the LR become word aligned ?\n\ - bne 1f @ no =3D skip the next test\n\ - cmp %2, #4 @ is the count >=3D 4 ?\n\ - bhs 3f @ yes =3D goto START WORD CHECK LOOP\n\ -1: @ LOOP TEST\n\ - sub %2, %2, #1 @ decrement count by one\n\ - cmn %2, #0x1 @ has the count reached -1 ?\n\ - bne 0b @ no =3D loop back to LOOP START\n\ - b 4f @ goto PASS END\n\ -\n\ -0: @ ??\n\ - cmp %2, #0x7 @ Is the count a multiple of 8 ?\n\ - bls 3f @ no =3D goto ???\n\ - ldmia lr,{r2, r3} @ get two words from first pointer, post inc\n\ - ldmia r4,{r5, r6} @ get two words from second pointer, post inc\n\ - sub %2, %2, #0x4 @ decrement count by 4\n\ - cmp r2, r5 @ has the count reached ????\n\ - bne 1f @ no =3D goto\n\ - sub %2, %2, #0x4 @ decrement the count by 4\n\ - add lr, lr, #0x4 @ add 4 to first pointer\n\ - add r4, r4, #0x4 @ add 4 to second pointer\n\ - cmp r3, r6 @ ???\n\ - beq 0b @ goto ???\n\ -1: @ ??\n\ - add %2, %2, #0x4 @ Add four to count\n\ - sub %0, lr, #0x4 @ decrement first pointer by 4\n\ - sub %1, r4, #0x4 @ decrement second pointer by 4\n\ - b 6f @ goto SLOW CHECK\n\ -\n\ -3: @ START WORD CHECK LOOP\n\ - cmp %2, #0x3 @ is the count <=3D 3 ?\n\ - bls 1f @ yes =3D goto CHECK BYTES BY HAND\n\ - ldr r2, [lr], #4 @ get word from LR, post inc\n\ - ldr r3, [r4], #4 @ get word from R4, post inc\n\ - sub %2, %2, #4 @ decrement count by 4\n\ - cmp r2, r3 @ are the two words the same ?\n\ - bne 1f @ no =3D goto CHECK WORD CONTENTS\n\ -0: @ WORD CHECK LOOP\n\ - cmp %2, #0x3 @ is the count <=3D 3 ?\n\ - bls 1f @ yes =3D goto CHECK BYTES BY HAND\n\ - ldr r2, [lr], #4 @ load word from LR, post inc\n\ -" PRELOADSTR("lr") " @ preload\n\ - ldr r3, [r4], #4 @ load word from R4, post inc\n\ -" PRELOADSTR("r4") " @ preload\n\ - sub %2, %2, #4 @ decrement count by 4\n\ - cmp r2, r3 @ are the two words the same ?\n\ - beq 0b @ yes =3D goto WORD CHECK LOOP\n\ -1: @ CHECK BYTES BY HAND\n\ - sub %0, lr, #0x4 @ move LR back a word and put into first pointer\n\ - sub %1, r4, #0x4 @ move R4 back a word and put into second pointer\n\ - add %2, %2, #4 @ increment the count by 4\n\ - @ fall through into SLOW CHECK" -#endif /* !__OPTIMIZE_SIZE__ */ -"\n\ -6: @ SLOW CHECK\n\ - sub %2, %2, #1 @ Decrement the count by one\n\ - cmn %2, #0x1 @ Has the count reached -1 ?\n\ - beq 4f @ Yes - we are finished, goto PASS END\n\ -0: @ LOOP1\n\ - ldrb r2, [%0], #1 @ get byte from first pointer\n\ -" PRELOADSTR("%0") " @ preload first pointer\n\ - ldrb r3, [%1], #1 @ get byte from second pointer\n\ -" PRELOADSTR("%1") " @ preload second pointer\n\ - cmp r2, r3 @ compare the two loaded bytes\n\ - bne 5f @ if they are not equal goto EXIT\n\ - sub %2, %2, #1 @ decremented count by 1\n\ - cmn %2, #0x1 @ has the count reached -1 ?\n\ - bne 0b @ no =3D then go back to LOOP1\n\ -4: @ PASS END\n\ - mov r3, r2 @ Default return value is 0\n\ -5: @ EXIT\n\ - rsb %0, r3, r2 @ return difference between last two bytes loaded" - : "=3Dr" (result), "=3D&r" (s2), "=3D&r" (len) - : "0" (s1), "1" (s2), "2" (len) - : "r2", "r3", "r4", "r5", "r6", "cc", "lr"); - return result; -} -#endif diff --git a/newlib/libc/machine/xscale/memcpy.c b/newlib/libc/machine/xsca= le/memcpy.c deleted file mode 100644 index 20758e159..000000000 --- a/newlib/libc/machine/xscale/memcpy.c +++ /dev/null @@ -1,103 +0,0 @@ -#if defined __thumb__ - -#include "../../string/memcpy.c" - -#else - -#include -#include "xscale.h" -#include "../../string/local.h" - -void * -__inhibit_loop_to_libcall -memcpy (void *__restrict dst0, const void *__restrict src0, size_t len) -{ - int dummy; - asm volatile ( -#ifndef __OPTIMIZE_SIZE__ - "cmp %2, #0x3\n\ - bls 3f\n\ - and lr, %1, #0x3\n\ - and r3, %0, #0x3\n\ - cmp lr, r3\n\ - bne 3f\n\ - cmp lr, #0x0\n\ - beq 2f\n\ - b 1f\n\ -0:\n\ - ldrb r3, [%1], #1\n\ -" - PRELOADSTR ("%1") -"\n\ - tst %1, #0x3\n\ - strb r3, [%0], #1\n\ - beq 3f\n\ -1:\n\ - sub %2, %2, #1\n\ - cmn %2, #1\n\ - bne 0b\n\ -2:\n\ - cmp %2, #0xf\n\ - bls 1f\n\ -0:\n\ - ldmia %1!, { r3, r4, r5, lr }\n\ -" - PRELOADSTR ("%1") -"\n\ -\n\ - sub %2, %2, #16\n\ - cmp %2, #0xf\n\ - stmia %0!, { r3, r4, r5, lr }\n\ - bhi 0b\n\ -1:\n\ - cmp %2, #0x7\n\ - bls 1f\n\ -0:\n\ - ldmia %1!, { r3, r4 }\n\ -" - PRELOADSTR ("%1") -"\n\ -\n\ - sub %2, %2, #8\n\ - cmp %2, #0x7\n\ - stmia %0!, { r3, r4 }\n\ - bhi 0b\n\ -1:\n\ - cmp %2, #0x3\n\ - bls 3f\n\ -0:\n\ - sub %2, %2, #4\n\ - ldr r3, [%1], #4\n\ -" - PRELOADSTR ("%1") -"\n\ -\n\ - cmp %2, #0x3\n\ - str r3, [%0], #4\n\ - bhi 0b\n\ -" -#endif /* !__OPTIMIZE_SIZE__ */ -"\n\ -3:\n\ -" - PRELOADSTR ("%1") -"\n\ - sub %2, %2, #1\n\ - cmn %2, #1\n\ - beq 1f\n\ -0:\n\ - sub %2, %2, #1\n\ - ldrb r3, [%1], #1\n\ -" - PRELOADSTR ("%1") -"\n\ - cmn %2, #1\n\ - strb r3, [%0], #1\n\ - bne 0b\n\ -1:" - : "=3D&r" (dummy), "=3D&r" (src0), "=3D&r" (len) - : "0" (dst0), "1" (src0), "2" (len) - : "memory", "lr", "r3", "r4", "r5", "cc"); - return dst0; -} -#endif diff --git a/newlib/libc/machine/xscale/memmove.c b/newlib/libc/machine/xsc= ale/memmove.c deleted file mode 100644 index 04d1a14d2..000000000 --- a/newlib/libc/machine/xscale/memmove.c +++ /dev/null @@ -1,122 +0,0 @@ -#if defined __thumb__ - -#include "../../string/memmove.c" - -#else - -#include -#include "xscale.h" - -static inline void * -do_memcpy (void *dst0, const void *src0, size_t len) -{ - int dummy; - asm volatile ( -#ifndef __OPTIMIZE_SIZE__ - "cmp %2, #0x3\n\ - bls 3f\n\ - and lr, %1, #0x3\n\ - and r3, %0, #0x3\n\ - cmp lr, r3\n\ - bne 3f\n\ - cmp lr, #0x0\n\ - beq 2f\n\ - b 1f\n\ -0:\n\ - ldrb r3, [%1], #1\n\ -" - PRELOADSTR ("%1") -"\n\ - tst %1, #0x3\n\ - strb r3, [%0], #1\n\ - beq 3f\n\ -1:\n\ - sub %2, %2, #1\n\ - cmn %2, #1\n\ - bne 0b\n\ -2:\n\ - cmp %2, #0xf\n\ - bls 1f\n\ -0:\n\ - ldmia %1!, { r3, r4, r5, lr }\n\ -" - PRELOADSTR ("%1") -"\n\ -\n\ - sub %2, %2, #16\n\ - cmp %2, #0xf\n\ - stmia %0!, { r3, r4, r5, lr }\n\ - bhi 0b\n\ -1:\n\ - cmp %2, #0x7\n\ - bls 1f\n\ -0:\n\ - ldmia %1!, { r3, r4 }\n\ -" - PRELOADSTR ("%1") -"\n\ -\n\ - sub %2, %2, #8\n\ - cmp %2, #0x7\n\ - stmia %0!, { r3, r4 }\n\ - bhi 0b\n\ -1:\n\ - cmp %2, #0x3\n\ - bls 3f\n\ -0:\n\ - sub %2, %2, #4\n\ - ldr r3, [%1], #4\n\ -" - PRELOADSTR ("%1") -"\n\ -\n\ - cmp %2, #0x3\n\ - str r3, [%0], #4\n\ - bhi 0b\n\ -" -#endif /* !__OPTIMIZE_SIZE__ */ -"\n\ -3:\n\ -" - PRELOADSTR ("%1") -"\n\ - sub %2, %2, #1\n\ - cmn %2, #1\n\ - beq 1f\n\ -0:\n\ - sub %2, %2, #1\n\ - ldrb r3, [%1], #1\n\ -" - PRELOADSTR ("%1") -"\n\ - cmn %2, #1\n\ - strb r3, [%0], #1\n\ - bne 0b\n\ -1:" - : "=3D&r" (dummy), "=3D&r" (src0), "=3D&r" (len) - : "0" (dst0), "1" (src0), "2" (len) - : "memory", "lr", "r3", "r4", "r5", "cc"); - return dst0; -} - -void * -memmove (void *dst, const void *src, size_t len) -{ - char *d =3D dst; - const char *s =3D src; - - if (s < d && d < s + len) - { - /* Destructive overlap...have to copy backwards. */ - s +=3D len; - d +=3D len; - - while (len--) - *--d =3D *--s; - - return dst; - } - else - return do_memcpy (dst, src, len); -} -#endif diff --git a/newlib/libc/machine/xscale/memset.c b/newlib/libc/machine/xsca= le/memset.c deleted file mode 100644 index 8fab2a7d1..000000000 --- a/newlib/libc/machine/xscale/memset.c +++ /dev/null @@ -1,91 +0,0 @@ -#if defined __thumb__ - -#include "../../string/memset.c" - -#else - -#include -#include "xscale.h" -#include "../../string/local.h" - -void * -__inhibit_loop_to_libcall -memset (void *dst, int c, size_t len) -{ - int dummy; - - asm volatile ("tst %0, #0x3" -#ifndef __OPTIMIZE_SIZE__ -"\n\ - beq 1f\n\ - b 2f\n\ -0:\n\ - strb %1, [%0], #1\n\ - tst %0, #0x3\n\ - beq 1f\n\ -2:\n\ - movs r3, %2\n\ - sub %2, %2, #1\n\ - bne 0b\n\ -# At this point we know that %2 =3D=3D len =3D=3D -1 (since the SUB has al= ready taken\n\ -# place). If we fall through to the 1: label (as the code used to do), th= e\n\ -# CMP will detect this negative value and branch to the 2: label. This wi= ll\n\ -# test %2 again, but this time against 0. The test will fail and the loop= \n\ -# at 2: will go on for (almost) ever. Hence the explicit branch to the en= d\n\ -# of the hand written assembly code.\n\ - b 4f\n\ -1:\n\ - cmp %2, #0x3\n\ - bls 2f\n\ - and %1, %1, #0xff\n\ - orr lr, %1, %1, asl #8\n\ - cmp %2, #0xf\n\ - orr lr, lr, lr, asl #16\n\ - bls 1f\n\ - mov r3, lr\n\ - mov r4, lr\n\ - mov r5, lr\n\ -0:\n\ - sub %2, %2, #16\n\ - stmia %0!, { r3, r4, r5, lr }\n\ - cmp %2, #0xf\n\ - bhi 0b\n\ -1:\n\ - cmp %2, #0x7\n\ - bls 1f\n\ - mov r3, lr\n\ -0:\n\ - sub %2, %2, #8\n\ - stmia %0!, { r3, lr }\n\ - cmp %2, #0x7\n\ - bhi 0b\n\ -1:\n\ - cmp %2, #0x3\n\ - bls 2f\n\ -0:\n\ - sub %2, %2, #4\n\ - str lr, [%0], #4\n\ - cmp %2, #0x3\n\ - bhi 0b\n\ -" -#endif /* !__OPTIMIZE_SIZE__ */ -"\n\ -2:\n\ - movs r3, %2\n\ - sub %2, %2, #1\n\ - beq 4f\n\ -0:\n\ - movs r3, %2\n\ - sub %2, %2, #1\n\ - strb %1, [%0], #1\n\ - bne 0b\n\ -4:" - - : "=3D&r" (dummy), "=3D&r" (c), "=3D&r" (len) - : "0" (dst), "1" (c), "2" (len) - : "memory", "r3", "r4", "r5", "lr"); - - return dst; -} -=20 -#endif diff --git a/newlib/libc/machine/xscale/setjmp.S b/newlib/libc/machine/xsca= le/setjmp.S deleted file mode 100644 index d37486090..000000000 --- a/newlib/libc/machine/xscale/setjmp.S +++ /dev/null @@ -1,137 +0,0 @@ -/* This is a simple version of setjmp and longjmp. - - Nick Clifton, Cygnus Solutions, 13 June 1997. */ - -/* ANSI concatenation macros. */ -#define CONCAT(a, b) CONCAT2(a, b) -#define CONCAT2(a, b) a##b - -#ifndef __USER_LABEL_PREFIX__ -#error __USER_LABEL_PREFIX__ not defined -#endif - -#define SYM(x) CONCAT (__USER_LABEL_PREFIX__, x) - -#ifdef __ELF__ -#define TYPE(x) .type SYM(x),function -#define SIZE(x) .size SYM(x), . - SYM(x) -#else -#define TYPE(x) -#define SIZE(x) -#endif - -/* Arm/Thumb interworking support: - - The interworking scheme expects functions to use a BX instruction - to return control to their parent. Since we need this code to work - in both interworked and non-interworked environments as well as with - older processors which do not have the BX instruction we do the=20 - following: - Test the return address. - If the bottom bit is clear perform an "old style" function exit. - (We know that we are in ARM mode and returning to an ARM mode caller). - Otherwise use the BX instruction to perform the function exit. - - We know that we will never attempt to perform the BX instruction on=20 - an older processor, because that kind of processor will never be=20 - interworked, and a return address with the bottom bit set will never=20 - be generated. - - In addition, we do not actually assemble the BX instruction as this wou= ld - require us to tell the assembler that the processor is an ARM7TDMI and - it would store this information in the binary. We want this binary to = be - able to be linked with binaries compiled for older processors however, = so - we do not want such information stored there. =20 - - If we are running using the APCS-26 convention however, then we never - test the bottom bit, because this is part of the processor status. =20 - Instead we just do a normal return, since we know that we cannot be=20 - returning to a Thumb caller - the Thumb does not support APCS-26. -=09 - Function entry is much simpler. If we are compiling for the Thumb we=20 - just switch into ARM mode and then drop through into the rest of the - function. The function exit code will take care of the restore to - Thumb mode. */ - -#ifdef __APCS_26__ -#define RET movs pc, lr -#else -#define RET tst lr, #1; \ - moveq pc, lr ; \ -.word 0xe12fff1e /* bx lr */ -#endif - -#ifdef __thumb__ -#define MODE .thumb_func -.macro PROLOGUE name - .code 16 - bx pc - nop=09 - .code 32 -SYM (.arm_start_of.\name): -.endm -#else -#define MODE .code 32 -.macro PROLOGUE name -.endm -#endif -=09 -.macro FUNC_START name - .text - .align 2 - MODE - .globl SYM (\name) - TYPE (\name) -SYM (\name): - PROLOGUE \name -.endm - -.macro FUNC_END name - RET - SIZE (\name) -.endm -=09 -/* -------------------------------------------------------------------- - int setjmp (jmp_buf);=20 - -------------------------------------------------------------------- */ -=09 - FUNC_START setjmp - - /* Save all the callee-preserved registers into the jump buffer. */ - stmea a1!, { v1-v7, fp, ip, sp, lr } -=09 -#if 0 /* Simulator does not cope with FP instructions yet. */ -#ifndef __SOFTFP__ - /* Save the floating point registers. */ - sfmea f4, 4, [a1] -#endif -#endif =09 - /* When setting up the jump buffer return 0. */ - mov a1, #0 - - FUNC_END setjmp -=09 -/* -------------------------------------------------------------------- - volatile void longjmp (jmp_buf, int); - -------------------------------------------------------------------- */ -=09 - FUNC_START longjmp - - /* If we have stack extension code it ought to be handled here. */ -=09 - /* Restore the registers, retrieving the state when setjmp() was called. = */ - ldmfd a1!, { v1-v7, fp, ip, sp, lr } -=09 -#if 0 /* Simulator does not cope with FP instructions yet. */ -#ifndef __SOFTFP__ - /* Restore floating point registers as well. */ - lfmfd f4, 4, [a1] -#endif -#endif=09 - /* Put the return value into the integer result register. - But if it is zero then return 1 instead. */=09 - movs a1, a2 - moveq a1, #1 - - FUNC_END longjmp - diff --git a/newlib/libc/machine/xscale/strchr.c b/newlib/libc/machine/xsca= le/strchr.c deleted file mode 100644 index 3b736c53c..000000000 --- a/newlib/libc/machine/xscale/strchr.c +++ /dev/null @@ -1,73 +0,0 @@ -#if defined __thumb__ - -#include "../../string/strchr.c" - -#else - -#include -#include "xscale.h" - -char * -strchr (const char *s, int c) -{ - unsigned int c2; - asm (PRELOADSTR ("%0") : : "r" (s)); - - c &=3D 0xff; - -#ifndef __OPTIMIZE_SIZE__ - /* Skip unaligned part. */ - if ((long)s & 3) - { - s--; - do - { - int c2 =3D *++s; - if (c2 =3D=3D c) - return (char *)s; - if (c2 =3D=3D '\0') - return 0; - } - while (((long)s & 3) !=3D 0); - } - - c2 =3D c + (c << 8); - c2 +=3D c2 << 16; - - /* Load two constants: - R6 =3D 0xfefefeff [ =3D=3D ~(0x80808080 << 1) ] - R5 =3D 0x80808080 */ - - asm (PRELOADSTR ("%0") "\n\ - mov r5, #0x80\n\ - add r5, r5, #0x8000\n\ - add r5, r5, r5, lsl #16\n\ - mvn r6, r5, lsl #1\n\ -\n\ - sub %0, %0, #4\n\ -0:\n\ - ldr r1, [%0, #4]!\n\ -" PRELOADSTR ("%0") "\n\ - add r3, r1, r6\n\ - bic r3, r3, r1\n\ - ands r2, r3, r5\n\ - bne 1f\n\ - eor r2, r1, %1\n\ - add r3, r2, r6\n\ - bic r3, r3, r2\n\ - ands r1, r3, r5\n\ - beq 0b\n\ -1:" - : "=3D&r" (s) - : "r" (c2), "0" (s) - : "r1", "r2", "r3", "r5", "r6", "cc"); -#endif - - while (*s && *s !=3D c) - s++; - if (*s =3D=3D c) - return (char *)s; - return NULL; -} - -#endif diff --git a/newlib/libc/machine/xscale/strcmp.c b/newlib/libc/machine/xsca= le/strcmp.c deleted file mode 100644 index 6c94d126f..000000000 --- a/newlib/libc/machine/xscale/strcmp.c +++ /dev/null @@ -1,107 +0,0 @@ -#if defined __thumb__ - -#include "../../string/strcmp.c" - -#else - -#include -#include "xscale.h" - -int -strcmp (const char *s1, const char *s2) -{ - asm (PRELOADSTR ("%0") : : "r" (s1)); - asm (PRELOADSTR ("%0") : : "r" (s2)); - -#ifndef __OPTIMIZE_SIZE__ - if (((long)s1 & 3) =3D=3D ((long)s2 & 3)) - { - int result; - - /* Skip unaligned part. */ - while ((long)s1 & 3) - { - if (*s1 =3D=3D '\0' || *s1 !=3D *s2) - goto out; - s1++; - s2++; - } - - /* Load two constants: - lr =3D 0xfefefeff [ =3D=3D ~(0x80808080 << 1) ] - ip =3D 0x80808080 */ - - asm ( - "ldr r2, [%1, #0]\n\ - ldr r3, [%2, #0]\n\ - cmp r2, r3\n\ - bne 2f\n\ -\n\ - mov ip, #0x80\n\ - add ip, ip, #0x8000\n\ - add ip, ip, ip, lsl #16\n\ - mvn lr, ip, lsl #1\n\ -\n\ -0:\n\ - ldr r2, [%1, #0]\n\ - add r3, r2, lr\n\ - bic r3, r3, r2\n\ - tst r3, ip\n\ - beq 1f\n\ - mov %0, #0x0\n\ - b 3f\n\ -1:\n\ - ldr r2, [%1, #4]!\n\ - ldr r3, [%2, #4]!\n\ -" PRELOADSTR("%1") "\n\ -" PRELOADSTR("%2") "\n\ - cmp r2, r3\n\ - beq 0b" - - /* The following part could be done in a C loop as well, but it nee= ds - to be assembler to save some cycles in the case where the optimized - loop above finds the strings to be equal. */ -"\n\ -2:\n\ - ldrb r2, [%1, #0]\n\ -" PRELOADSTR("%1") "\n\ -" PRELOADSTR("%2") "\n\ - cmp r2, #0x0\n\ - beq 1f\n\ - ldrb r3, [%2, #0]\n\ - cmp r2, r3\n\ - bne 1f\n\ -0:\n\ - ldrb r3, [%1, #1]!\n\ - add %2, %2, #1\n\ - ands ip, r3, #0xff\n\ - beq 1f\n\ - ldrb r3, [%2]\n\ - cmp ip, r3\n\ - beq 0b\n\ -1:\n\ - ldrb lr, [%1, #0]\n\ - ldrb ip, [%2, #0]\n\ - rsb %0, ip, lr\n\ -3:\n\ -" - - : "=3Dr" (result), "=3D&r" (s1), "=3D&r" (s2) - : "1" (s1), "2" (s2) - : "lr", "ip", "r2", "r3", "cc"); - return result; - } -#endif - - while (*s1 !=3D '\0' && *s1 =3D=3D *s2) - { - asm (PRELOADSTR("%0") : : "r" (s1)); - asm (PRELOADSTR("%0") : : "r" (s2)); - s1++; - s2++; - } - out: - return (*(unsigned char *) s1) - (*(unsigned char *) s2); -} - -#endif diff --git a/newlib/libc/machine/xscale/strcpy.c b/newlib/libc/machine/xsca= le/strcpy.c deleted file mode 100644 index 46db2ba6a..000000000 --- a/newlib/libc/machine/xscale/strcpy.c +++ /dev/null @@ -1,62 +0,0 @@ -#if defined __thumb__ - -#include "../../string/strcpy.c" - -#else - -#include -#include "xscale.h" - -char * -strcpy (char *dest, const char *src) -{ - char *dest0 =3D dest; - - asm (PRELOADSTR ("%0") : : "r" (src)); - -#ifndef __OPTIMIZE_SIZE__ - if (((long)src & 3) =3D=3D ((long)dest & 3)) - { - /* Skip unaligned part. */ - while ((long)src & 3) - { - if (! (*dest++ =3D *src++)) - return dest0; - } - - /* Load two constants: - R4 =3D 0xfefefeff [ =3D=3D ~(0x80808080 << 1) ] - R5 =3D 0x80808080 */ - - asm ("mov r5, #0x80\n\ - ldr r1, [%1, #0]\n\ - add r5, r5, #0x8000\n\ - add r5, r5, r5, lsl #16\n\ - mvn r4, r5, lsl #1\n\ -\n\ - add r3, r1, r5\n\ - bic r3, r3, r1\n\ - ands r2, r3, r4\n\ - bne 1f\n\ -0:\n\ - ldr r3, [%1, #0]\n\ - ldr r1, [%1, #4]!\n\ -" PRELOADSTR("%1") "\n\ - str r3, [%0], #4\n\ - add r2, r1, r4\n\ - bic r2, r2, r1\n\ - ands r3, r2, r5\n\ - beq 0b\n\ -1:" - : "=3D&r" (dest), "=3D&r" (src) - : "0" (dest), "1" (src) - : "r1", "r2", "r3", "r4", "r5", "memory", "cc"); - } -#endif - - while (*dest++ =3D *src++) - asm (PRELOADSTR ("%0") : : "r" (src)); - return dest0; -} - -#endif diff --git a/newlib/libc/machine/xscale/strlen.c b/newlib/libc/machine/xsca= le/strlen.c deleted file mode 100644 index 70c9a3b44..000000000 --- a/newlib/libc/machine/xscale/strlen.c +++ /dev/null @@ -1,100 +0,0 @@ -#if defined __thumb__ || defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTI= MIZE_SIZE__) - -#include "../../string/strlen.c" - -#else - -#include -#include "xscale.h" - -size_t -strlen (const char *str) -{ - const char *start =3D str; - - /* Skip unaligned part. */ - if ((long)str & 3) - { - str--; - do - { - if (*++str =3D=3D '\0') - goto out; - } - while ((long)str & 3); - } - - /* Load two constants: - R4 =3D 0xfefefeff [ =3D=3D ~(0x80808080 << 1) ] - R5 =3D 0x80808080 */ - - asm ("mov r5, #0x80\n\ - add r5, r5, #0x8000\n\ - add r5, r5, r5, lsl #16\n\ - mvn r4, r5, lsl #1\n\ -" - -#if defined __ARM_ARCH_5__ || defined __ARM_ARCH_5T__ || defined __ARM_ARC= H_5E__ || defined __ARM_ARCH_5TE__ - -" tst %0, #0x7\n\ - ldreqd r6, [%0]\n\ - beq 1f\n\ - ldr r2, [%0]\n\ - add r3, r2, r4\n\ - bic r3, r3, r2\n\ - ands r2, r3, r5\n\ - bne 2f\n\ - sub %0, %0, #4\n\ -\n\ -0:\n\ - ldrd r6, [%0, #8]!\n\ -" - PRELOADSTR ("%0") -"\n\ -1:\n\ - add r3, r6, r4\n\ - add r2, r7, r4\n\ - bic r3, r3, r6\n\ - bic r2, r2, r7\n\ - and r3, r3, r5\n\ - and r2, r2, r5\n\ - orrs r3, r2, r3\n\ - beq 0b\n\ -" -#else - -" sub %0, %0, #4\n\ -\n\ -0:\n\ - ldr r6, [%0, #4]!\n\ -" - PRELOADSTR ("%0") -"\n\ - add r3, r6, r4\n\ - bic r3, r3, r6\n\ - ands r3, r3, r5\n\ - beq 0b\n\ -" -#endif /* __ARM_ARCH_5[T][E]__ */ -"\n\ -2:\n\ - ldrb r3, [%0]\n\ - cmp r3, #0x0\n\ - beq 1f\n\ -\n\ -0:\n\ - ldrb r3, [%0, #1]!\n\ -" - PRELOADSTR ("%0") -"\n\ - cmp r3, #0x0\n\ - bne 0b\n\ -1:\n\ -" - : "=3Dr" (str) : "0" (str) : "r2", "r3", "r4", "r5", "r6", "r7"); - - out: - return str - start; -} - -#endif diff --git a/newlib/libc/machine/xscale/xscale.h b/newlib/libc/machine/xsca= le/xscale.h deleted file mode 100644 index c127e6653..000000000 --- a/newlib/libc/machine/xscale/xscale.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef __XSCALE_MACH_H__ -#define __XSCALE_MACH_H__ - -/* These are predefined by new versions of GNU cpp. */ - -#ifndef __USER_LABEL_PREFIX__ -#define __USER_LABEL_PREFIX__ _ -#endif - -#ifndef __REGISTER_PREFIX__ -#define __REGISTER_PREFIX__ -#endif - -/* ANSI concatenation macros. */ - -#define CONCAT1(a, b) CONCAT2(a, b) -#define CONCAT2(a, b) a##b - -/* Use the right prefix for global labels. */ - -#define SYM(x) CONCAT1(__USER_LABEL_PREFIX__, x) - -#ifdef __XSCALE__ -#define PRELOAD(X) pld [X] -#define PRELOADSTR(X) " pld [" X "]" -#else -#define PRELOAD(X) -#define PRELOADSTR(X) "" -#endif /* __XSCALE__ */ - -#endif /* !__XSCALE_MACH_H__ */