[PATCH] MIPS gas: Fix -O parsing
Thiemo Seufer
ths@networkno.de
Mon May 14 12:32:00 GMT 2007
Hello All,
I applied the appended patch, it fixes parsing of the -O option,
and thus allows again to have nop'ed branch delay slots via -O0.
Thiemo
2007-05-14 Thiemo Seufer <ths@mips.com>
* config/tc-mips.c (md_parse_option): Fix parsing of -O option.
Index: config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.366
diff -u -p -r1.366 tc-mips.c
--- config/tc-mips.c 28 Apr 2007 22:12:58 -0000 1.366
+++ config/tc-mips.c 14 May 2007 12:22:18 -0000
@@ -11036,7 +11036,7 @@ md_parse_option (int c, char *arg)
break;
case 'O':
- if (arg && arg[1] == '0')
+ if (arg && arg[0] == '0')
mips_optimize = 1;
else
mips_optimize = 2;
More information about the Binutils
mailing list