* [PATCH 12/20] MIPS/GAS: Remove lastregno's preinitialisation
@ 2010-12-02 19:21 Maciej W. Rozycki
0 siblings, 0 replies; only message in thread
From: Maciej W. Rozycki @ 2010-12-02 19:21 UTC (permalink / raw)
To: Richard Sandiford; +Cc: Catherine Moore, binutils
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-02 19:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-02 19:21 [PATCH 12/20] MIPS/GAS: Remove lastregno's preinitialisation Maciej W. Rozycki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).