This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] redefine _JBTYPE on cell spu
- From: jschopp <jschopp at austin dot ibm dot com>
- To: Jeff Johnston <jjohnstn at redhat dot com>
- Cc: newlib at sources dot redhat dot com
- Date: Tue, 12 Dec 2006 18:33:44 -0600
- Subject: [PATCH] redefine _JBTYPE on cell spu
This patch redefines _JBTYPE syntax on the spu to something equivalent that works with
non-gcc compilers (xlc specifically) in addition to gcc. It's a one liner, tested with
both gcc and xlc.
2006-12-12 Joel Schopp <jschopp@austin.ibm.com>
* spu/access.c: redefine _JBTYPE for cell spu
Index: src/newlib/libc/include/machine/setjmp.h
===================================================================
--- src.orig/newlib/libc/include/machine/setjmp.h
+++ src/newlib/libc/include/machine/setjmp.h
@@ -210,7 +210,7 @@ _BEGIN_STD_C
#ifdef __SPU__
#define _JBLEN 50
-#define _JBTYPE __attribute__ (( __vector_size__ (16) )) int
+#define _JBTYPE vector signed int
#endif
#ifdef __xstormy16__