From 8436fe35328c0c173575ad517e746e4e3a57d781 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 25 Aug 1992 03:07:57 +0000 Subject: [PATCH] (process_command): Don't set verbose_flag if they make a typo (e.g., `-v-E'); only when it's exactly "-v". From-SVN: r1940 --- gcc/gcc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/gcc.c b/gcc/gcc.c index 838d9e9059a..ef5abb87309 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -2045,8 +2045,12 @@ process_command (argc, argv) break; case 'v': /* Print our subcommands and print versions. */ - verbose_flag++; n_switches++; + /* If they do anything other than exactly `-v', don't set + verbose_flag; rather, continue on to give the error. */ + if (p[1] != 0) + break; + verbose_flag++; break; case 'V': -- 2.30.2