diff options
author | Devang Patel <dpatel@apple.com> | 2003-03-10 15:41:42 -0800 |
---|---|---|
committer | Devang Patel <dpatel@gcc.gnu.org> | 2003-03-10 15:41:42 -0800 |
commit | 87d7d780ea971694a2e710dc3d6f3a3d7a9255b2 (patch) | |
tree | 984d98b935666a18064dc2fa49e37e242a2e6350 /gcc/cp/g++spec.c | |
parent | 6b856d1594c650d1224777b65cc912584e9141a5 (diff) | |
download | gcc-87d7d780ea971694a2e710dc3d6f3a3d7a9255b2.tar.gz |
gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
PR/9394
* gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
(DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
* gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
(DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
* cppspec.c (DEFAULT_SWTICH_TAKES_ARG): Remove.
(DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
cp
* g++spec.c (lang_specific_driver): Use DEFAULT_WORD_SWITCH_TAKES_ARG.
testsuite
* g++.dg/cpp/c++_cmd_1.C: New test.
* g++.dg/cpp/c++_cmd_1.h: New file.
From-SVN: r64144
Diffstat (limited to 'gcc/cp/g++spec.c')
-rw-r--r-- | gcc/cp/g++spec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/g++spec.c b/gcc/cp/g++spec.c index 75a1d7c28a4..d2f99d9990c 100644 --- a/gcc/cp/g++spec.c +++ b/gcc/cp/g++spec.c @@ -189,6 +189,8 @@ lang_specific_driver (in_argc, in_argv, in_added_libraries) else if (strcmp (argv[i], "-static-libgcc") == 0 || strcmp (argv[i], "-static") == 0) shared_libgcc = 0; + else if (DEFAULT_WORD_SWITCH_TAKES_ARG (&argv[i][1])) + i++; else /* Pass other options through. */ continue; |