This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] MIPS gas: Fix -O parsing
- From: Thiemo Seufer <ths at networkno dot de>
- To: binutils at sourceware dot org
- Date: Mon, 14 May 2007 13:32:15 +0100
- Subject: [PATCH] MIPS gas: Fix -O parsing
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;