Base WORD_SWITCH_TAKES_ARG on new macro DEFAULT_WORD_SWITCH_TAKES_ARG
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 27 Apr 1993 14:58:13 +0000 (14:58 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 27 Apr 1993 14:58:13 +0000 (14:58 +0000)
From-SVN: r4247

gcc/config/i386/osfrose.h
gcc/config/m68k/sun2.h
gcc/config/m68k/sun3.h
gcc/config/mips/osfrose.h
gcc/config/nextstep.h
gcc/config/sparc/sparc.h
gcc/config/svr4.h
gcc/gcc.c

index 3158b09ad0a5497e6fd68c636c60da3580ee8253..ceeb95f09a0b4a6b1d1c3538d6869e26768ee398 100644 (file)
@@ -31,10 +31,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #undef  WORD_SWITCH_TAKES_ARG
 #define WORD_SWITCH_TAKES_ARG(STR)                                     \
- (!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext")                     \
-  || !strcmp (STR, "Tbss") || !strcmp (STR, "include")                 \
-  || !strcmp (STR, "imacros") || !strcmp (STR, "aux-info")             \
-  || !strcmp (STR, "pic-names"))
+ (DEFAULT_WORD_SWITCH_TAKES_ARG (STR) || !strcmp (STR, "pic-names"))
 
 #define MASK_HALF_PIC          0x40000000      /* Mask for half-pic code */
 #define MASK_HALF_PIC_DEBUG    0x20000000      /* Debug flag */
index 34338293fb46fd9e952fe4057b323d034aafcb18..792f50387a96d86902b3e9c5809c0a1dbcb46c66 100644 (file)
@@ -48,10 +48,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* These compiler options take an argument.  We ignore -target for now.  */
 
 #define WORD_SWITCH_TAKES_ARG(STR)                             \
- (!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext")             \
-  || !strcmp (STR, "Tbss") || !strcmp (STR, "include")         \
-  || !strcmp (STR, "imacros") || !strcmp (STR, "target")       \
-  || !strcmp (STR, "assert") || !strcmp (STR, "aux-info"))
+ (DEFAULT_WORD_SWITCH_TAKES_ARG (STR)                          \
+  || !strcmp (STR, "target") || !strcmp (STR, "assert"))
 
 /* Specify what to link with.  */
 
index 063f2abe5b8612585104049b915dd4f515b85161..b8c67f69fc7a5db5abd73df7e982eb6fa54fe4c5 100644 (file)
@@ -72,10 +72,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* These compiler options take an argument.  We ignore -target for now.  */
 
 #define WORD_SWITCH_TAKES_ARG(STR)                             \
- (!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext")             \
-  || !strcmp (STR, "Tbss") || !strcmp (STR, "include")         \
-  || !strcmp (STR, "imacros") || !strcmp (STR, "target")       \
-  || !strcmp (STR, "assert") || !strcmp (STR, "aux-info"))
+ (DEFAULT_WORD_SWITCH_TAKES_ARG (STR)                          \
+  || !strcmp (STR, "target") || !strcmp (STR, "assert"))
 
 /* -m68000 requires special flags to the assembler.  */
 
index f2afd62cd35bf8554386d247107fec57bf7e904f..ae29be8f27e19f164b804618515d6e8e79571eb7 100644 (file)
@@ -27,10 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "halfpic.h"
 
 #define WORD_SWITCH_TAKES_ARG(STR)                                     \
- (!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext")                     \
-  || !strcmp (STR, "Tbss") || !strcmp (STR, "include")                 \
-  || !strcmp (STR, "imacros") || !strcmp (STR, "aux-info")             \
-  || !strcmp (STR, "pic-names"))
+ (DEFAULT_WORD_SWITCH_TAKES_ARG (STR) || !strcmp (STR, "pic-names"))
 
 #define CPP_PREDEFINES "-DOSF -DOSF1 -Dbsd4_2 -DMIPSEL -Dhost_mips -Dmips -Dunix -DR3000 -DSYSTYPE_BSD"
 
index dc2f0208d97fafc4d125a945603e67b7c417e685..58f490a50e084b9b2513448d4eea42429d641fd8 100644 (file)
@@ -89,11 +89,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #undef WORD_SWITCH_TAKES_ARG
 #define WORD_SWITCH_TAKES_ARG(STR)             \
-  (!strcmp (STR, "Ttext") ? 1 :                        \
-   !strcmp (STR, "Tdata") ? 1 :                        \
-   !strcmp (STR, "Tbss") ? 1 :                 \
-   !strcmp (STR, "include") ? 1 :              \
-   !strcmp (STR, "imacros") ? 1 :              \
+  (DEFAULT_WORD_SWITCH_TAKES_ARG (str) ? 1 :   \
    !strcmp (STR, "segalign") ? 1 :             \
    !strcmp (STR, "seg1addr") ? 1 :             \
    !strcmp (STR, "segaddr") ? 2 :              \
@@ -103,7 +99,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
    !strcmp (STR, "sectalign") ? 3 :            \
    !strcmp (STR, "segcreate") ? 3 :            \
    !strcmp (STR, "sectorder") ? 3 :            \
-   !strcmp (STR, "aux-info") ? 1 :             \
    !strcmp (STR, "siff-mask") ? 1 :            \
    !strcmp (STR, "siff-filter") ? 1 :          \
    !strcmp (STR, "siff-warning") ? 1 :         \
index b5a434690e32be2953ebe6916bc1a2dc2f1ea73e..19c6f19802cfb6804fc6f22cf4faea830fc49833 100644 (file)
@@ -72,10 +72,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* These compiler options take an argument.  We ignore -target for now.  */
 
 #define WORD_SWITCH_TAKES_ARG(STR)                             \
- (!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext")             \
-  || !strcmp (STR, "Tbss") || !strcmp (STR, "include")         \
-  || !strcmp (STR, "imacros") || !strcmp (STR, "target")       \
-  || !strcmp (STR, "assert") || !strcmp (STR, "aux-info"))
+ (DEFAULT_WORD_SWITCH_TAKES_ARG (STR)                          \
+  || !strcmp (STR, "target") || !strcmp (STR, "assert"))
 
 /* Names to predefine in the preprocessor for this target machine.  */
 
index 866bc7ebc209a458f7ba1e933431b7abfe1bf804..64fa031a28f7686c4d0e13e6fcca50ae8bfe8c8f 100644 (file)
@@ -69,8 +69,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
    there are no such switches except those implemented by GCC itself.  */
 
 #define WORD_SWITCH_TAKES_ARG(STR)                     \
- (!strcmp (STR, "include") || !strcmp (STR, "imacros") \
-  || !strcmp (STR, "aux-info"))
+ (DEFAULT_WORD_SWITCH_TAKES_ARG (STR)                  \
+  && strcmp (STR, "Tdata") && strcmp (STR, "Ttext")    \
+  && strcmp (STR, "Tbss"))
 
 /* You should redefine CPP_PREDEFINES in any file which includes this one.
    The definition should be appropriate for the type of target system
index 37957a6614e01420aa8a02c428a4c2652196d2cc..8f0e7035257a8bdc57f040151fab54e5b5e45282 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -394,11 +394,15 @@ static char *switches_need_spaces = SWITCHES_NEED_SPACES;
 
 /* This defines which multi-letter switches take arguments.  */
 
-#ifndef WORD_SWITCH_TAKES_ARG
-#define WORD_SWITCH_TAKES_ARG(STR)                     \
+#define DEFAULT_WORD_SWITCH_TAKES_ARG(STR)             \
  (!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext")     \
   || !strcmp (STR, "Tbss") || !strcmp (STR, "include") \
-  || !strcmp (STR, "imacros") || !strcmp (STR, "aux-info"))
+  || !strcmp (STR, "imacros") || !strcmp (STR, "aux-info") \
+  || !strcmp (STR, "idirafter") || !strcmp (STR, "iprefix") \
+  || !strcmp (STR, "iwithprefix"))
+
+#ifndef WORD_SWITCH_TAKES_ARG
+#define WORD_SWITCH_TAKES_ARG(STR) DEFAULT_WORD_SWITCH_TAKES_ARG (STR)
 #endif
 \f
 /* Record the mapping from file suffixes for compilation specs.  */