diff --git a/gcc/ChangeLog b/gcc/ChangeLog index acbec99bf33..adee11f3ab8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-11-07 Jie Zhang + + * gcc.c (process_command): Treat -b as normal switch if its argument + has no dash. + 2006-11-07 David Ung * config/mips/mips.h (ISA_HAS_PREFETCHX): Add ISA_MIPS32R2 to the 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;