This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 1/2] libgloss: Eliminate unrecommended use of vector keyword on SPU
- From: Kazunori Asayama <asayama at sm dot sony dot co dot jp>
- To: newlib at sourceware dot org
- Date: Fri, 19 Jan 2007 21:05:09 +0900 (LMT)
- Subject: [PATCH 1/2] libgloss: Eliminate unrecommended use of vector keyword on SPU
- References: <20070119.210223.20990759.asayama@echo.sm.sony.co.jp>
Attached is a patch to eliminate 'vector' keywords in libgloss.
2007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp>
* libgloss/spu/syscalls.c: Replace vector with __vector.
----
Index: newlib/libgloss/spu/syscalls.c
===================================================================
--- newlib.orig/libgloss/spu/syscalls.c
+++ newlib/libgloss/spu/syscalls.c
@@ -29,7 +29,6 @@ POSSIBILITY OF SUCH DAMAGE.
Author: Andreas Neukoetter (ti95neuk@de.ibm.com)
*/
-#include <spu_intrinsics.h>
#include "jsre.h"
void
@@ -38,7 +37,7 @@ _send_to_ppe (unsigned int signalcode, u
unsigned int combined = ( ( opcode<<24 )&0xff000000 ) | ( ( unsigned int )data & 0x00ffffff );
- vector unsigned int stopfunc = {
+ __vector unsigned int stopfunc = {
signalcode, /* stop */
(unsigned int) combined,
0x4020007f, /* nop */