From e349146bc7a97dbf595abb2b796b754ddb029d61 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 2 Aug 2010 08:43:18 +0000 Subject: [PATCH] * config/tc-v850.c (md_assemble): Always pass format string to as_warn. (md_apply_fix): Similarly for as_warn_where. --- gas/ChangeLog | 6 ++++++ gas/config/tc-v850.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 504aba2ec..7a76619a4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2010-08-02 Alan Modra + + * config/tc-v850.c (md_assemble): Always pass format string to + as_warn. + (md_apply_fix): Similarly for as_warn_where. + 2010-07-29 H.J. Lu * config/tc-i386-intel.c: Reformat. diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c index d792769f9..69d450290 100644 --- a/gas/config/tc-v850.c +++ b/gas/config/tc-v850.c @@ -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, segT seg ATTRIBUTE_UNUSED) 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); -- 2.11.4.GIT