public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Fix v850 build breakage
@ 2010-08-02  8:43 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2010-08-02  8:43 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-02  8:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-02  8:43 Fix v850 build breakage Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).