* config/tc-mips.c (md_parse_option): Match mips_optimize to the -O

option supplied, but still keep mips_optimize == 2 as default value.
This commit is contained in:
Thiemo Seufer 2007-11-17 14:19:19 +00:00
parent 42554f6a08
commit 4ffff32f75
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-11-17 Thiemo Seufer <ths@mips.com>
* config/tc-mips.c (md_parse_option): Match mips_optimize to the -O
option supplied, but still keep mips_optimize == 2 as default value.
2007-11-17 Thiemo Seufer <ths@mips.com>
* doc/as.texinfo: Document the new attribute value.

View File

@ -11013,7 +11013,11 @@ md_parse_option (int c, char *arg)
break;
case 'O':
if (arg && arg[0] == '0')
if (arg == NULL)
mips_optimize = 1;
else if (arg[0] == '0')
mips_optimize = 0;
else if (arg[0] == '1')
mips_optimize = 1;
else
mips_optimize = 2;