From b8e05321bafa23703a30027a8e3ab64037fd67b0 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 23 Aug 2006 16:07:36 +0000 Subject: [PATCH] 2006-08-23 Kazunori Asayama * libc/machine/configure.in: Add configuration for SPU. * libc/machine/configure: Regenerated. * libc/machine/spu/memcpy.c: Include string.h. --- newlib/ChangeLog | 6 ++++++ newlib/libc/machine/configure | 7 ++++++- newlib/libc/machine/configure.in | 1 + newlib/libc/machine/spu/memcpy.c | 2 ++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 231d02d9c..d59e8cf9a 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2006-08-23 Kazunori Asayama + + * libc/machine/configure.in: Add configuration for SPU. + * libc/machine/configure: Regenerated. + * libc/machine/spu/memcpy.c: Include string.h. + 2006-08-22 Eric Blake * libc/posix/popen.c (popen): Don't close output end of pipe in diff --git a/newlib/libc/machine/configure b/newlib/libc/machine/configure index c1b55b0bd..7b35512c4 100755 --- a/newlib/libc/machine/configure +++ b/newlib/libc/machine/configure @@ -299,6 +299,7 @@ ac_subdirs_all="$ac_subdirs_all necv70" ac_subdirs_all="$ac_subdirs_all powerpc" ac_subdirs_all="$ac_subdirs_all sh" ac_subdirs_all="$ac_subdirs_all sparc" +ac_subdirs_all="$ac_subdirs_all spu" ac_subdirs_all="$ac_subdirs_all tic4x" ac_subdirs_all="$ac_subdirs_all tic80" ac_subdirs_all="$ac_subdirs_all v850" @@ -4662,7 +4663,7 @@ test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" case $host in *-*-irix6*) # Find out which ABI we are using. - echo '#line 4665 "configure"' > conftest.$ac_ext + echo '#line 4666 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -4999,6 +5000,10 @@ subdirs="$subdirs sh" sparc) subdirs="$subdirs sparc" + ;; + spu) + +subdirs="$subdirs spu" ;; tic4x) diff --git a/newlib/libc/machine/configure.in b/newlib/libc/machine/configure.in index ad459f888..87b066e91 100644 --- a/newlib/libc/machine/configure.in +++ b/newlib/libc/machine/configure.in @@ -49,6 +49,7 @@ if test -n "${machine_dir}"; then powerpc) AC_CONFIG_SUBDIRS(powerpc) ;; sh) AC_CONFIG_SUBDIRS(sh) ;; sparc) AC_CONFIG_SUBDIRS(sparc) ;; + spu) AC_CONFIG_SUBDIRS(spu) ;; tic4x) AC_CONFIG_SUBDIRS(tic4x) ;; tic80) AC_CONFIG_SUBDIRS(tic80) ;; v850) AC_CONFIG_SUBDIRS(v850) ;; diff --git a/newlib/libc/machine/spu/memcpy.c b/newlib/libc/machine/spu/memcpy.c index 6f5552685..2ef1711dd 100644 --- a/newlib/libc/machine/spu/memcpy.c +++ b/newlib/libc/machine/spu/memcpy.c @@ -30,6 +30,8 @@ POSSIBILITY OF SUCH DAMAGE. Author: Andreas Neukoetter (ti95neuk@de.ibm.com) */ +#include + void * memcpy (void *dst, const void *src, size_t len) { /* TODO: copying byte by byte is far to inefficient */