This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 12/20] MIPS/GAS: Remove lastregno's preinitialisation
- From: "Maciej W. Rozycki" <macro at codesourcery dot com>
- To: Richard Sandiford <rdsandiford at googlemail dot com>
- Cc: Catherine Moore <clm at codesourcery dot com>, binutils at sourceware dot org
- Date: Thu, 2 Dec 2010 19:20:55 +0000 (GMT)
- Subject: [PATCH 12/20] MIPS/GAS: Remove lastregno's preinitialisation
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;