[PATCH 12/20] MIPS/GAS: Remove lastregno's preinitialisation
Maciej W. Rozycki
macro@codesourcery.com
Thu Dec 2 19:21:00 GMT 2010
Hi,
There's no need to preinitialise lastregno to 0 in mips_ip() as the
variable is always set to 0xffffffff before its first use later on.
2010-12-02 Maciej W. Rozycki <macro@codesourcery.com>
gas/
* config/tc-mips.c (mips_ip): Remove lastregno's
preinitialization.
OK to apply?
Maciej
binutils-gas-mips-lastregno.diff
Index: binutils-fsf-trunk-quilt/gas/config/tc-mips.c
===================================================================
--- binutils-fsf-trunk-quilt.orig/gas/config/tc-mips.c 2010-12-01 21:05:51.000000000 +0000
+++ binutils-fsf-trunk-quilt/gas/config/tc-mips.c 2010-12-01 21:05:51.000000000 +0000
@@ -8638,7 +8638,7 @@ mips_ip (char *str, struct mips_cl_insn
struct mips_opcode *insn;
char *argsStart;
unsigned int regno;
- unsigned int lastregno = 0;
+ unsigned int lastregno;
unsigned int lastpos = 0;
unsigned int limlo, limhi;
char *s_reset;
More information about the Binutils
mailing list