]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ar.c (usage): Fix C conformance issue.
authorNick Clifton <nickc@redhat.com>
Thu, 18 Jul 2013 16:12:35 +0000 (16:12 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 18 Jul 2013 16:12:35 +0000 (16:12 +0000)
* config/tc-i386-intel.c (i386_intel_operand): Fixed signed vs
unsigned comparison.

binutils/ChangeLog
binutils/ar.c
gas/ChangeLog
gas/config/tc-i386-intel.c

index 700d03b39947f2296eba0c8d4c7df3347623ab3f..8f0451ae07923b1f907440903db0181680c70ba5 100644 (file)
@@ -1,3 +1,7 @@
+2013-07-18  Jim Thomas  <thomas@cfht.hawaii.edu>
+
+       * ar.c (usage): Fix C conformance issue.
+
 2013-07-18  Nick Clifton  <nickc@redhat.com>
 
        * doc/binutils.texi (nm, objdump): Remove bogus links to STABS
index c424038f78afdb5fc4277f63b0d800848d495ab7..af5694dfa2049f8e03900645ab74df99b5068c92 100644 (file)
@@ -243,8 +243,6 @@ usage (int help)
 {
   FILE *s;
 
-  s = help ? stdout : stderr;
-
 #if BFD_SUPPORTS_PLUGINS
   /* xgettext:c-format */
   const char *command_line
@@ -257,6 +255,8 @@ usage (int help)
     = _("Usage: %s [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV]"
        " [member-name] [count] archive-file file...\n");
 #endif
+  s = help ? stdout : stderr;
+
   fprintf (s, command_line, program_name);
 
   /* xgettext:c-format */
index 87908d7267ffa615e86a2fba22d465abf81378d9..04229f9ba8043eb8ab91b213a1255c0989100a1b 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-18  Jim Thomas  <thomas@cfht.hawaii.edu>
+
+       * config/tc-i386-intel.c (i386_intel_operand): Fixed signed vs
+       unsigned comparison.
+
 2013-07-18  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
 
         * config/rx-defs.h: Add macros for RX100, RX200, RX600, and
index aefdc2a9c7cb4f5968143fee1864e7f5dbdd31f5..90808618342c46f01e75177f13b8a700280b1579 100644 (file)
@@ -792,7 +792,7 @@ i386_intel_operand (char *operand_string, int got_a_float)
           || intel_state.is_mem)
     {
       /* Memory operand.  */
-      if (i.mem_operands
+      if ((int) i.mem_operands
          >= 2 - !current_templates->start->opcode_modifier.isstring)
        {
          /* Handle