summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1996-05-17 19:55:44 +0000
committerDoug Evans <dje@gnu.org>1996-05-17 19:55:44 +0000
commit520e7ff5c74212d49b6b88b6808565300082691c (patch)
tree7178d2f9ecba6493ae920ecb4a9a05ab17d20648 /gcc/toplev.c
parent9c6e68c2ad0c4ca689e56be776837a9f977d9c57 (diff)
downloadgcc-520e7ff5c74212d49b6b88b6808565300082691c.tar.gz
(print_switch_values): Ignore -o.
From-SVN: r12014
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 8b084d3cd1e..5d5eb45ac1f 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -4141,10 +4141,16 @@ print_switch_values (file, pos, max, indent, sep, term)
pos = print_single_switch (file, pos, max, indent, *indent ? " " : "", term,
"options passed: ", "");
- for (p = &save_argv[1]; *p != (char *)0; p++)
+ for (p = &save_argv[1]; *p != NULL; p++)
if (**p == '-')
{
/* Ignore these. */
+ if (strcmp (*p, "-o") == 0)
+ {
+ if (p[1] != NULL)
+ p++;
+ continue;
+ }
if (strcmp (*p, "-quiet") == 0)
continue;
if (strcmp (*p, "-version") == 0)