summaryrefslogtreecommitdiff
path: root/gcc/cppspec.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-04 22:26:16 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-04 22:26:16 +0000
commit258d3911fa8cdf1bedf60e66226a1ad2122f440b (patch)
tree4aec21524555a6f1865b61882e878e800162659f /gcc/cppspec.c
parent67cd941fba673a6ad5500ce5657f48c8840e8cef (diff)
downloadgcc-258d3911fa8cdf1bedf60e66226a1ad2122f440b.tar.gz
* cppspec.c (lang_specific_driver): Set is_cpp_driver.
* gcc.c (process_command): Ensure the cpp driver sees --help and --target-help, and that the help is printed exactly once. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47627 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppspec.c')
-rw-r--r--gcc/cppspec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cppspec.c b/gcc/cppspec.c
index 27a82360105..5f787d61c8d 100644
--- a/gcc/cppspec.c
+++ b/gcc/cppspec.c
@@ -103,6 +103,9 @@ lang_specific_driver (in_argc, in_argv, in_added_libraries)
int i, j, quote = 0;
const char **new_argv;
int new_argc;
+ extern int is_cpp_driver;
+
+ is_cpp_driver = 1;
/* First pass. If we see an -S or -c, barf. If we see an input file,
turn off read_stdin. If we see a second input file, it is actually