From: Jie Zhang Date: Tue, 7 Nov 2006 14:24:58 +0000 (+0000) Subject: gcc.c (process_command): Treat -b as normal switch if its argument has no dash. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=010b2043b094449c1d89d07da6e20bbfafd0f0e7;p=platform%2Fupstream%2Fgcc.git 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 --- 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 + + * 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 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;