This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fix v850 build breakage
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Mon, 2 Aug 2010 18:13:19 +0930
- Subject: Fix v850 build breakage
Fixes warning from recent versions of gcc.
* config/tc-v850.c (md_assemble): Always pass format string to
as_warn.
(md_apply_fix): Similarly for as_warn_where.
Index: gas/config/tc-v850.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-v850.c,v
retrieving revision 1.56
diff -u -p -r1.56 tc-v850.c
--- gas/config/tc-v850.c 23 Jul 2010 14:52:50 -0000 1.56
+++ gas/config/tc-v850.c 2 Aug 2010 07:37:33 -0000
@@ -2709,7 +2709,7 @@ md_assemble (char *str)
}
if (warningmsg != NULL)
- as_warn (warningmsg);
+ as_warn ("%s", warningmsg);
break;
}
@@ -3111,7 +3111,7 @@ md_apply_fix (fixS *fixP, valueT *valueP
insn = v850_insert_operand (insn, operand, (offsetT) value,
&errmsg);
if (errmsg)
- as_warn_where (fixP->fx_file, fixP->fx_line, errmsg);
+ as_warn_where (fixP->fx_file, fixP->fx_line, "%s", errmsg);
if (fixP->fx_size > 2)
bfd_putl32 ((bfd_vma) insn, (unsigned char *) where);
--
Alan Modra
Australia Development Lab, IBM