aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2006-11-07 14:24:58 +0000
committerJie Zhang <jiez@gcc.gnu.org>2006-11-07 14:24:58 +0000
commit010b2043b094449c1d89d07da6e20bbfafd0f0e7 (patch)
tree10ea36fc884ac700155b36197b243a15f18e0b2c /gcc/gcc.c
parent5ab727410aef535793986cf78e34fac2dffa8ede (diff)
downloadgcc-010b2043b094449c1d89d07da6e20bbfafd0f0e7.zip
gcc-010b2043b094449c1d89d07da6e20bbfafd0f0e7.tar.gz
gcc-010b2043b094449c1d89d07da6e20bbfafd0f0e7.tar.bz2
gcc.c (process_command): Treat -b as normal switch if its argument has no dash.
* gcc.c (process_command): Treat -b as normal switch if its argument has no dash. From-SVN: r118547
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 4b12474..6c017ec 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;