gcc.c (process_command): Treat -b as normal switch if its argument has no dash.
authorJie Zhang <jie.zhang@analog.com>
Tue, 7 Nov 2006 14:24:58 +0000 (14:24 +0000)
committerJie Zhang <jiez@gcc.gnu.org>
Tue, 7 Nov 2006 14:24:58 +0000 (14:24 +0000)
* gcc.c (process_command): Treat -b as normal switch if its argument
has no dash.

From-SVN: r118547

gcc/ChangeLog
gcc/gcc.c

index acbec99bf3376071fea673e164fda30b83b633d6..adee11f3ab8bc359770853e32c52f2371e4df21f 100644 (file)
@@ -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
index 4b12474af1641a07f02cf314cad0a61459391979..6c017ec425173c969b59d35cae37d97cd410f849 100644 (file)
--- 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;