option supplied, but still keep mips_optimize == 2 as default value.
+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.
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;