summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-07 14:24:58 +0000
committerjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-07 14:24:58 +0000
commitfb244a46bda62e54a6cc480c32de72e7036915f6 (patch)
tree10ea36fc884ac700155b36197b243a15f18e0b2c /gcc/gcc.c
parent832474fea951c150ea880248b3769da80201b383 (diff)
downloadgcc-fb244a46bda62e54a6cc480c32de72e7036915f6.tar.gz
* gcc.c (process_command): Treat -b as normal switch if its argument
has no dash. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118547 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 4b12474af16..6c017ec4251 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3744,7 +3744,10 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
switch (c)
{
case 'b':
- if (NULL == strchr(argv[i] + 2, '-')) break;
+ if (NULL == strchr(argv[i] + 2, '-'))
+ goto normal_switch;
+
+ /* Fall through. */
case 'V':
fatal ("'-%c' must come at the start of the command line", c);
break;