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]

[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__

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