From 57ff95d35bbcb72c45648968b4d7e3b5be1e71e5 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 16 Apr 2003 15:45:29 +0000 Subject: [PATCH] 2003-04-16 Jeff Johnston * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield all code with #ifdef __SPE__ test. * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto. --- newlib/ChangeLog | 6 ++++++ newlib/libc/machine/powerpc/atosfix16.c | 3 +++ newlib/libc/machine/powerpc/atosfix32.c | 3 +++ newlib/libc/machine/powerpc/atosfix64.c | 3 +++ newlib/libc/machine/powerpc/atoufix16.c | 3 +++ newlib/libc/machine/powerpc/atoufix32.c | 3 +++ newlib/libc/machine/powerpc/atoufix64.c | 3 +++ newlib/libc/machine/powerpc/simdldtoa.c | 6 +++--- newlib/libc/machine/powerpc/strtosfix16.c | 4 ++++ newlib/libc/machine/powerpc/strtosfix32.c | 4 ++++ newlib/libc/machine/powerpc/strtosfix64.c | 4 ++++ newlib/libc/machine/powerpc/strtoufix16.c | 4 ++++ newlib/libc/machine/powerpc/strtoufix32.c | 4 ++++ newlib/libc/machine/powerpc/strtoufix64.c | 5 +++-- newlib/libc/machine/powerpc/ufix64toa.c | 3 +++ 15 files changed, 53 insertions(+), 5 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index b82bd80bd..a820f0418 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2003-04-16 Jeff Johnston + + * newlib/libc/machine/powerpc (ato*fix*.c,strto*fix*.c): Shield + all code with #ifdef __SPE__ test. + * newlib/libc/machine/powerpc (simdldtoa.c, ufix64toa.c): Ditto. + 2003-04-15 Chris January * newlib/libc/include/sys/unistd.h: add declaration for gethostid on diff --git a/newlib/libc/machine/powerpc/atosfix16.c b/newlib/libc/machine/powerpc/atosfix16.c index 819c2f068..501c0f1cb 100644 --- a/newlib/libc/machine/powerpc/atosfix16.c +++ b/newlib/libc/machine/powerpc/atosfix16.c @@ -79,6 +79,8 @@ PORTABILITY * Jeff Johnston - 02/13/2002 */ +#ifdef __SPE__ + #include #include <_ansi.h> @@ -100,3 +102,4 @@ _DEFUN (atosfix16, (s), #endif /* !_REENT_ONLY */ +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/atosfix32.c b/newlib/libc/machine/powerpc/atosfix32.c index 5d55e4580..dbcac7e2f 100644 --- a/newlib/libc/machine/powerpc/atosfix32.c +++ b/newlib/libc/machine/powerpc/atosfix32.c @@ -2,6 +2,8 @@ * Jeff Johnston - 02/13/2002 */ +#ifdef __SPE__ + #include #include <_ansi.h> @@ -23,3 +25,4 @@ _DEFUN (atosfix32, (s), #endif /* !_REENT_ONLY */ +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/atosfix64.c b/newlib/libc/machine/powerpc/atosfix64.c index b720d3824..109baf7b6 100644 --- a/newlib/libc/machine/powerpc/atosfix64.c +++ b/newlib/libc/machine/powerpc/atosfix64.c @@ -2,6 +2,8 @@ * Jeff Johnston - 02/13/2002 */ +#ifdef __SPE__ + #include #include <_ansi.h> @@ -23,3 +25,4 @@ _DEFUN (atosfix64, (s), #endif /* !_REENT_ONLY */ +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/atoufix16.c b/newlib/libc/machine/powerpc/atoufix16.c index a84c4c7e1..53db13764 100644 --- a/newlib/libc/machine/powerpc/atoufix16.c +++ b/newlib/libc/machine/powerpc/atoufix16.c @@ -79,6 +79,8 @@ PORTABILITY * Jeff Johnston - 02/13/2002 */ +#ifdef __SPE__ + #include #include <_ansi.h> @@ -100,3 +102,4 @@ _DEFUN (atoufix16, (s), #endif /* !_REENT_ONLY */ +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/atoufix32.c b/newlib/libc/machine/powerpc/atoufix32.c index f3ef1d43a..ee29ac586 100644 --- a/newlib/libc/machine/powerpc/atoufix32.c +++ b/newlib/libc/machine/powerpc/atoufix32.c @@ -2,6 +2,8 @@ * Jeff Johnston - 02/13/2002 */ +#ifdef __SPE__ + #include #include <_ansi.h> @@ -23,3 +25,4 @@ _DEFUN (atoufix32, (s), #endif /* !_REENT_ONLY */ +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/atoufix64.c b/newlib/libc/machine/powerpc/atoufix64.c index c2a7eded7..e5eefc423 100644 --- a/newlib/libc/machine/powerpc/atoufix64.c +++ b/newlib/libc/machine/powerpc/atoufix64.c @@ -2,6 +2,8 @@ * Jeff Johnston - 02/13/2002 */ +#ifdef __SPE__ + #include #include <_ansi.h> @@ -23,3 +25,4 @@ _DEFUN (atoufix64, (s), #endif /* !_REENT_ONLY */ +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/simdldtoa.c b/newlib/libc/machine/powerpc/simdldtoa.c index d15133afa..71ff12143 100644 --- a/newlib/libc/machine/powerpc/simdldtoa.c +++ b/newlib/libc/machine/powerpc/simdldtoa.c @@ -3,6 +3,8 @@ * This program has been placed in the public domain. */ +#ifdef __SPE__ + #include <_ansi.h> #include #include @@ -3718,6 +3720,4 @@ for (i=0; i < n; i++) *nan++ = *p++; } - - - +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/strtosfix16.c b/newlib/libc/machine/powerpc/strtosfix16.c index ad629978c..d3cfe0781 100644 --- a/newlib/libc/machine/powerpc/strtosfix16.c +++ b/newlib/libc/machine/powerpc/strtosfix16.c @@ -106,6 +106,8 @@ PORTABILITY The OS subroutines of <> are required. */ +#ifdef __SPE__ + #include <_ansi.h> #include #include @@ -204,3 +206,5 @@ _DEFUN (strtosfix16, (s, ptr, base), } #endif + +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/strtosfix32.c b/newlib/libc/machine/powerpc/strtosfix32.c index 0f2ded6f7..2e22c1458 100644 --- a/newlib/libc/machine/powerpc/strtosfix32.c +++ b/newlib/libc/machine/powerpc/strtosfix32.c @@ -1,3 +1,5 @@ +#ifdef __SPE__ + #include <_ansi.h> #include #include @@ -98,3 +100,5 @@ _DEFUN (strtosfix32, (s, ptr, base), } #endif + +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/strtosfix64.c b/newlib/libc/machine/powerpc/strtosfix64.c index d0fa769d9..09999c1a9 100644 --- a/newlib/libc/machine/powerpc/strtosfix64.c +++ b/newlib/libc/machine/powerpc/strtosfix64.c @@ -1,3 +1,5 @@ +#ifdef __SPE__ + #include <_ansi.h> #include #include @@ -111,3 +113,5 @@ _DEFUN (strtosfix64, (s, ptr, base), } #endif + +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/strtoufix16.c b/newlib/libc/machine/powerpc/strtoufix16.c index 0c1fad30f..d90255c0e 100644 --- a/newlib/libc/machine/powerpc/strtoufix16.c +++ b/newlib/libc/machine/powerpc/strtoufix16.c @@ -105,6 +105,8 @@ PORTABILITY The OS subroutines of <> are required. */ +#ifdef __SPE__ + #include <_ansi.h> #include #include @@ -195,3 +197,5 @@ _DEFUN (strtoufix16, (s, ptr, base), } #endif + +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/strtoufix32.c b/newlib/libc/machine/powerpc/strtoufix32.c index 141c6278f..25e9d143f 100644 --- a/newlib/libc/machine/powerpc/strtoufix32.c +++ b/newlib/libc/machine/powerpc/strtoufix32.c @@ -1,3 +1,5 @@ +#ifdef __SPE__ + #include <_ansi.h> #include #include @@ -95,3 +97,5 @@ _DEFUN (strtoufix32, (s, ptr, base), } #endif + +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/strtoufix64.c b/newlib/libc/machine/powerpc/strtoufix64.c index e06f4db6c..47a7984e4 100644 --- a/newlib/libc/machine/powerpc/strtoufix64.c +++ b/newlib/libc/machine/powerpc/strtoufix64.c @@ -1,3 +1,5 @@ +#ifdef __SPE__ + #include <_ansi.h> #include #include @@ -111,5 +113,4 @@ _DEFUN (strtoufix64, (s, ptr, base), #endif - - +#endif /* __SPE__ */ diff --git a/newlib/libc/machine/powerpc/ufix64toa.c b/newlib/libc/machine/powerpc/ufix64toa.c index 4d3d0a885..6f0d12870 100644 --- a/newlib/libc/machine/powerpc/ufix64toa.c +++ b/newlib/libc/machine/powerpc/ufix64toa.c @@ -6,6 +6,8 @@ * Written by Jeff Johnston. */ +#ifdef __SPE__ + #include <_ansi.h> #include #include @@ -86,3 +88,4 @@ _DEFUN (_ufix64toa_r, (rptr, value, mode, ndigits, decpt, sign, rve), return _simdldtoa_r (rptr, &ldbl, mode, ndigits, decpt, sign, rve); } +#endif /* __SPE__ */