(SIGNED_CHAR_SPEC): Use #if instead of ?:.
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 20 Oct 1994 20:13:22 +0000 (13:13 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 20 Oct 1994 20:13:22 +0000 (13:13 -0700)
From-SVN: r8321

gcc/config/i960/i960.h

index 6cce7b1ca83d7987200f00ff35a9e7c17ca77566..834a3163593a7e2c295405a325a0a41f0bed8b1e 100644 (file)
@@ -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 \