diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-10-20 13:13:22 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-10-20 13:13:22 -0700 |
commit | 0f1d97b8f6692d3e798f9f52759c7e8a3fe40c01 (patch) | |
tree | caaf6e1551bea013c7035797715c3e71b44d2de7 | |
parent | 086675cba39a2543595064934d3793f67e854fdc (diff) | |
download | gcc-0f1d97b8f6692d3e798f9f52759c7e8a3fe40c01.zip gcc-0f1d97b8f6692d3e798f9f52759c7e8a3fe40c01.tar.gz gcc-0f1d97b8f6692d3e798f9f52759c7e8a3fe40c01.tar.bz2 |
(SIGNED_CHAR_SPEC): Use #if instead of ?:.
From-SVN: r8321
-rw-r--r-- | gcc/config/i960/i960.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h index 6cce7b1..834a316 100644 --- a/gcc/config/i960/i960.h +++ b/gcc/config/i960/i960.h @@ -45,9 +45,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ %{!mcc:%{!mcf:-D__i960_KB -D__i960KB__ %{mic*:-D__i960KB}}}}}}}}}" /* -mic* options make characters signed by default. */ -#define SIGNED_CHAR_SPEC \ - (DEFAULT_SIGNED_CHAR ? "%{funsigned-char:-D__CHAR_UNSIGNED__}" \ - : "%{!fsigned-char:%{!mic*:-D__CHAR_UNSIGNED__}}") +/* Use #if rather than ?: because MIPS C compiler rejects ?: in + initializers. */ +#if DEFAULT_SIGNED_CHAR +#define SIGNED_CHAR_SPEC "%{funsigned-char:-D__CHAR_UNSIGNED__}" +#else +#define SIGNED_CHAR_SPEC "%{!fsigned-char:%{!mic*:-D__CHAR_UNSIGNED__}}" +#endif /* Specs for the compiler, to handle processor variations. */ #define CC1_SPEC \ |