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 allocator


On Mon, Feb 18, 2008 at 01:01:31PM -0800, Patrick Mansfield wrote:
> Hi Jeff -
> 
> Can you comment or apply? Thanks ...

I messed up on the Makefile.am, I will repost soon with a proper
Makefile.am that doesn't have the memcmp.

> ===================================================================
> --- quilt.orig/newlib/libc/machine/spu/Makefile.am
> +++ quilt/newlib/libc/machine/spu/Makefile.am
> @@ -8,23 +8,47 @@ noinst_LIBRARIES = lib.a
> 
>  AM_CCASFLAGS = $(INCLUDES)
> 
> -lib_a_SOURCES = setjmp.S clearerr.c creat.c fclose.c feof.c ferror.c fflush.c \
> -	fgetc.c fgetpos.c fgets.c fileno.c fiprintf.S fiscanf.S fopen.c \
> -	fprintf.S fputc.c fputs.c fread.c freopen.c fscanf.S fseek.c \
> -	fsetpos.c ftell.c fwrite.c getc.c getchar.c gets.c iprintf.S \
> -	iscanf.S memcmp.c memcpy.c memmove.c memset.c perror.c printf.S \
> -	putc.c putchar.c puts.c remove.c rename.c rewind.c scanf.S \
> +lib_a_SOURCES = setjmp.S callocr.c clearerr.c creat.c fclose.c \
> +	feof.c ferror.c fflush.c fgetc.c fgetpos.c fgets.c fileno.c \
> +	fiprintf.S fiscanf.S fopen.c fprintf.S fputc.c fputs.c fread.c \
> +	freer.c freopen.c fscanf.S fseek.c fsetpos.c ftell.c fwrite.c \
> +	getc.c getchar.c gets.c iprintf.S iscanf.S malignr.c mallocr.c \
> +	memcmp.c memcpy.c memmove.c memset.c perror.c printf.S putc.c \
> +	putchar.c puts.c reallocr.c remove.c rename.c rewind.c scanf.S \
>  	setbuf.c setvbuf.c siprintf.S siscanf.S sleep.c sniprintf.S \
>  	snprintf.S sprintf.S sscanf.S stdio.c strcat.c strchr.c strcmp.c \
> -	strcpy.c strcspn.c strlen.c strncat.c strncmp.c strncpy.c strpbrk.c \
> -	strrchr.c strspn.c strxfrm.c tmpfile.c tmpnam.c ungetc.c usleep.c \
> -	vfiprintf.c vfiscanf.c vfprintf.c vfscanf.c viprintf.c viscanf.c \
> -	vprintf.c vscanf.c vsiprintf.c vsiscanf.c vsniprintf.c vsnprintf.c \
> -	vsprintf.c vsscanf.c stack_reg_va.S
> +	strcpy.c strcspn.c strlen.c strncat.c strncmp.c strncpy.c \
> +	strpbrk.c strrchr.c strspn.c strxfrm.c tmpfile.c tmpnam.c ungetc.c \
> +	usleep.c vfiprintf.c vfiscanf.c vfprintf.c vfscanf.c viprintf.c \
> +	viscanf.c vprintf.c vscanf.c vsiprintf.c vsiscanf.c vsniprintf.c \
> +	vsnprintf.c vsprintf.c vsscanf.c stack_reg_va.S
> +
> +LIBADD_OBJS =  \
> +	$(lpfx)calloc.$(oext) \
> +	$(lpfx)free.$(oext) \
> +	$(lpfx)malign.$(oext) \
> +	$(lpfx)malloc.$(oext) \
> +	$(lpfx)realloc.$(oext)
> 
>  lib_a_CCASFLAGS = $(AM_CCASFLAGS)
>  lib_a_CFLAGS = $(AM_CFLAGS)
> 
> +lib_a_LIBADD = $(LIBADD_OBJS)
> +
>  ACLOCAL_AMFLAGS = -I ../../.. -I ../../../..
>  CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
> 
> +$(lpfx)calloc.$(oext): malloc.c
> +	$(COMPILE) -DDEFINE_CALLOC -c $(srcdir)/malloc.c -o $@
> +
> +$(lpfx)free.$(oext): malloc.c
> +	$(COMPILE) -DDEFINE_FREE -c $(srcdir)/malloc.c -o $@
> +
> +$(lpfx)malign.$(oext): malloc.c
> +	$(COMPILE) -DDEFINE_MEMALIGN -c $(srcdir)/malloc.c -o $@
> +
> +$(lpfx)malloc.$(oext): malloc.c
> +	$(COMPILE) -DDEFINE_MALLOC -c $(srcdir)/malloc.c -o $@
> +
> +$(lpfx)realloc.$(oext): malloc.c
> +	$(COMPILE) -DDEFINE_REALLOC -c $(srcdir)/malloc.c -o $@


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