OSDN Git Service

* gcc.c (process_command): Treat -b as normal switch if its argument
authorjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Nov 2006 14:24:58 +0000 (14:24 +0000)
committerjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Nov 2006 14:24:58 +0000 (14:24 +0000)
has no dash.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118547 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gcc.c

index acbec99..adee11f 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 4b12474..6c017ec 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;