aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>1993-04-27 14:58:13 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>1993-04-27 14:58:13 +0000
commit3b39b94f8463fabe0ad1c7d1f897fe16f35e4a0a (patch)
tree3465c70e0d23b2c903d7c05c1fc7834ecb846069 /gcc/gcc.c
parentab034cfc0ae8017daee188d4e1ea971d77c30a1a (diff)
downloadgcc-3b39b94f8463fabe0ad1c7d1f897fe16f35e4a0a.zip
gcc-3b39b94f8463fabe0ad1c7d1f897fe16f35e4a0a.tar.gz
gcc-3b39b94f8463fabe0ad1c7d1f897fe16f35e4a0a.tar.bz2
Base WORD_SWITCH_TAKES_ARG on new macro DEFAULT_WORD_SWITCH_TAKES_ARG
From-SVN: r4247
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 37957a6..8f0e703 100644
--- 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
/* Record the mapping from file suffixes for compilation specs. */