aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ip2k.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-12-12 22:21:04 +0000
committerAlan Modra <amodra@gmail.com>2002-12-12 22:21:04 +0000
commit64384dfd069acb9df6a5e6c945b982ca8ac748d7 (patch)
tree477069f14c0070f02ebfe155545928ff99731d36 /gas/config/tc-ip2k.c
parent78a0c6fb2d664b42e6373f6a7ba3e63b55f7c938 (diff)
downloadgdb-64384dfd069acb9df6a5e6c945b982ca8ac748d7.zip
gdb-64384dfd069acb9df6a5e6c945b982ca8ac748d7.tar.gz
gdb-64384dfd069acb9df6a5e6c945b982ca8ac748d7.tar.bz2
* config/tc-ip2k.c (md_assemble): Warning fix.
Diffstat (limited to 'gas/config/tc-ip2k.c')
-rw-r--r--gas/config/tc-ip2k.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gas/config/tc-ip2k.c b/gas/config/tc-ip2k.c
index 615fce6..973b660 100644
--- a/gas/config/tc-ip2k.c
+++ b/gas/config/tc-ip2k.c
@@ -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;
}
}