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
This commit is contained in:
Jie Zhang 2006-11-07 14:24:58 +00:00 committed by Jie Zhang
parent 5ab727410a
commit 010b2043b0
2 changed files with 9 additions and 1 deletions

View 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

View File

@ -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;