From 520e7ff5c74212d49b6b88b6808565300082691c Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 17 May 1996 19:55:44 +0000 Subject: [PATCH] (print_switch_values): Ignore -o. From-SVN: r12014 --- gcc/toplev.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/toplev.c b/gcc/toplev.c index 8b084d3..5d5eb45 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) -- 2.7.4