* config/tc-ip2k.c (md_assemble): Warning fix.
authorAlan Modra <amodra@gmail.com>
Thu, 12 Dec 2002 22:21:04 +0000 (22:21 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 12 Dec 2002 22:21:04 +0000 (22:21 +0000)
gas/ChangeLog
gas/config/tc-ip2k.c

index dce8ca7b8c4430ce2ae6341fba9d6b894e018d1d..bce8a4365adbbca236c5594391e19ff1b14c5cbd 100644 (file)
@@ -1,5 +1,6 @@
 2002-12-13  Alan Modra  <amodra@bigpond.net.au>
 
+       * config/tc-ip2k.c (md_assemble): Warning fix.
        * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
        (fill_insn <ignore>): Likewise.
        (debug_sym <ignore>): Likewise.
index 615fce608d5f5e713b7ea31545b74681022786e8..973b660934cd6f07f7b96dabcadc6d629c36a084 100644 (file)
@@ -180,14 +180,15 @@ md_assemble (str)
       enum cgen_parse_operand_result result_type;
       long value;
       const char *curpc_plus_2 = ".+2";
+      const char *err;
 
-      errmsg = cgen_parse_address (gas_cgen_cpu_desc, & curpc_plus_2,
-                                  IP2K_OPERAND_ADDR16CJP,
-                                  BFD_RELOC_IP2K_PC_SKIP,
-                                  & result_type, & value);
-      if (errmsg)
+      err = cgen_parse_address (gas_cgen_cpu_desc, & curpc_plus_2,
+                               IP2K_OPERAND_ADDR16CJP,
+                               BFD_RELOC_IP2K_PC_SKIP,
+                               & result_type, & value);
+      if (err)
        {
-         as_bad ("%s", errmsg);
+         as_bad ("%s", err);
          return;
        }
     }