diff options
author | Richard Stallman <rms@gnu.org> | 1992-08-25 03:07:57 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-08-25 03:07:57 +0000 |
commit | 8436fe35328c0c173575ad517e746e4e3a57d781 (patch) | |
tree | f079e07c4803f140b8f5614941a874a5eaf9d762 /gcc | |
parent | 7d2d49af126b23df12a81d029c891dc1343dc8e6 (diff) | |
download | gcc-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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': |