This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, MIPS, OPCODE] mips-dis.c build error


On 03/08/2013 10:36 AM, Michael Eager wrote:
I get an error complaining about mismatched unsigned/signed
initialization in opcpode/mips-dis.c while building gdb using
gcc-4.7.2.

Here is a simple fix:

ChangeLog
     * opcodes/mips-dis.c (print_insn_args): Modify def of reg.

Index: opcodes/mips-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/mips-dis.c,v
retrieving revision 1.98
diff -u -r1.98 mips-dis.c
--- opcodes/mips-dis.c    13 Feb 2013 17:09:09 -0000    1.98
+++ opcodes/mips-dis.c    8 Mar 2013 18:32:32 -0000
@@ -1273,7 +1273,9 @@
      case 'U':
        {
          /* First check for both rd and rt being equal.  */
-        unsigned int reg = GET_OP (l, RD);
+        unsigned int reg;
+
+        reg = GET_OP (l, RD);
          if (reg == GET_OP (l, RT))
            infprintf (is, "%s", mips_gpr_names[reg]);
          else

Committed.



-- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]