aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 4f57765..a1003a5 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -4751,10 +4751,9 @@ process_command (unsigned int decoded_options_count,
}
/* Ensure we only invoke each subprocess once. */
- if (print_subprocess_help || print_help_list || print_version)
+ if (n_infiles == 0
+ && (print_subprocess_help || print_help_list || print_version))
{
- n_infiles = 0;
-
/* Create a dummy input file, so that we can pass
the help option on to the various sub-processes. */
add_infile ("help-dummy", "c");