aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gcc.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index acbec99..adee11f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-07 Jie Zhang <jie.zhang@analog.com>
+
+ * gcc.c (process_command): Treat -b as normal switch if its argument
+ has no dash.
+
2006-11-07 David Ung <davidu@mips.com>
* config/mips/mips.h (ISA_HAS_PREFETCHX): Add ISA_MIPS32R2 to the
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;