aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-08-25 03:07:57 +0000
committerRichard Stallman <rms@gnu.org>1992-08-25 03:07:57 +0000
commit8436fe35328c0c173575ad517e746e4e3a57d781 (patch)
treef079e07c4803f140b8f5614941a874a5eaf9d762 /gcc
parent7d2d49af126b23df12a81d029c891dc1343dc8e6 (diff)
downloadgcc-8436fe35328c0c173575ad517e746e4e3a57d781.zip
gcc-8436fe35328c0c173575ad517e746e4e3a57d781.tar.gz
gcc-8436fe35328c0c173575ad517e746e4e3a57d781.tar.bz2
(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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gcc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 838d9e9..ef5abb8 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':