This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]