(SIGNED_CHAR_SPEC): Use #if rather than ?...
authorRichard Stallman <rms@gnu.org>
Thu, 17 Sep 1992 19:45:49 +0000 (19:45 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 17 Sep 1992 19:45:49 +0000 (19:45 +0000)
(SIGNED_CHAR_SPEC): Use #if rather than ?: to handle
setting the default SIGNED_CHAR_SPEC macro, since the 3.0 version
of the MIPS C compiler doesn't like ?: in initializers.

From-SVN: r2145

gcc/gcc.c

index a177900..f29a76e 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -356,9 +356,11 @@ proper position among the other output files.  */
 
 /* This spec is used for telling cpp whether char is signed or not.  */
 #ifndef SIGNED_CHAR_SPEC
-#define SIGNED_CHAR_SPEC  \
-  (DEFAULT_SIGNED_CHAR ? "%{funsigned-char:-D__CHAR_UNSIGNED__}"       \
-   : "%{!fsigned-char:-D__CHAR_UNSIGNED__}")
+#if DEFAULT_SIGNED_CHAR
+#define SIGNED_CHAR_SPEC "%{funsigned-char:-D__CHAR_UNSIGNED__}"
+#else
+#define SIGNED_CHAR_SPEC "%{!fsigned-char:-D__CHAR_UNSIGNED__}"
+#endif
 #endif
 
 static char *cpp_spec = CPP_SPEC;