aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2003-03-10 15:41:42 -0800
committerDevang Patel <dpatel@gcc.gnu.org>2003-03-10 15:41:42 -0800
commit87d7d780ea971694a2e710dc3d6f3a3d7a9255b2 (patch)
tree984d98b935666a18064dc2fa49e37e242a2e6350 /gcc/cp
parent6b856d1594c650d1224777b65cc912584e9141a5 (diff)
downloadgcc-87d7d780ea971694a2e710dc3d6f3a3d7a9255b2.zip
gcc-87d7d780ea971694a2e710dc3d6f3a3d7a9255b2.tar.gz
gcc-87d7d780ea971694a2e710dc3d6f3a3d7a9255b2.tar.bz2
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')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/g++spec.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 9f70757..93d3f22 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-10 Devang Patel <dpatel@apple.com>
+
+ PR c++/9394
+ * g++spec.c (lang_specific_driver): Use DEFAULT_WORD_SWTCH_TAKES_ARG.
2003-03-10 Jason Merrill <jason@redhat.com>
PR c++/9798
diff --git a/gcc/cp/g++spec.c b/gcc/cp/g++spec.c
index 75a1d7c..d2f99d9 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;