From: Alan Modra Date: Thu, 12 Dec 2002 22:21:04 +0000 (+0000) Subject: * config/tc-ip2k.c (md_assemble): Warning fix. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=54559ccb15fc06402a8073984a4991f38abe4e12;p=pf3gnuchains%2Fpf3gnuchains3x.git * config/tc-ip2k.c (md_assemble): Warning fix. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index dce8ca7b8c..bce8a4365a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,6 @@ 2002-12-13 Alan Modra + * config/tc-ip2k.c (md_assemble): Warning fix. * config/tc-m32r.c (md_parse_option ): Add ATTRIBUTE_UNUSED. (fill_insn ): Likewise. (debug_sym ): Likewise. diff --git a/gas/config/tc-ip2k.c b/gas/config/tc-ip2k.c index 615fce608d..973b660934 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; } }