This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] spu build broken


Patch checked in.

-- Jeff J.

Kazunori Asayama wrote:
> Hi all,
> 
> Here is a patch to fix build broken for SPE.
> 
> 2006-08-23  Kazunori Asayama  <asayama@sm.sony.co.jp>
> 
> 	* libc/machine/configure: Add configuration for SPU.
> 	* libc/machine/configure.in: Ditto.
> 	* libc/machine/spu/memcpy.c: Include string.h.
> 
> 
> Index: newlib-trunk/newlib/libc/machine/configure
> ===================================================================
> --- newlib-trunk.orig/newlib/libc/machine/configure	2006-08-01 08:00:59.000000000 +0900
> +++ newlib-trunk/newlib/libc/machine/configure	2006-08-22 16:26:11.000000000 +0900
> @@ -299,6 +299,7 @@
>  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 @@
>  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=$?
> @@ -5000,6 +5001,10 @@
> 
>  subdirs="$subdirs sparc"
>   ;;
> +	spu)
> +
> +subdirs="$subdirs spu"
> + ;;
>  	tic4x)
> 
>  subdirs="$subdirs tic4x"
> Index: newlib-trunk/newlib/libc/machine/configure.in
> ===================================================================
> --- newlib-trunk.orig/newlib/libc/machine/configure.in	2006-04-14 04:56:24.000000000 +0900
> +++ newlib-trunk/newlib/libc/machine/configure.in	2006-08-22 16:25:06.000000000 +0900
> @@ -49,6 +49,7 @@
>  	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) ;;
> Index: newlib-trunk/newlib/libc/machine/spu/memcpy.c
> ===================================================================
> --- newlib-trunk.orig/newlib/libc/machine/spu/memcpy.c	2006-08-17 06:39:43.000000000 +0900
> +++ newlib-trunk/newlib/libc/machine/spu/memcpy.c	2006-08-22 16:25:06.000000000 +0900
> @@ -30,6 +30,8 @@
>  Author: Andreas Neukoetter (ti95neuk@de.ibm.com)
>  */
> 
> +#include <string.h>
> +
>  void * memcpy (void *dst, const void *src, size_t len)
>  {
>  	/* TODO: copying byte by byte is far to inefficient */
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]