aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ppc.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2009-02-10 08:07:31 +0000
committerNathan Sidwell <nathan@codesourcery.com>2009-02-10 08:07:31 +0000
commitee2c9aa984dae9b7dfd44ec42228d50757ff2496 (patch)
tree7e93a0a3552a25701ca31aae4c7b1c3011c6a416 /gas/config/tc-ppc.c
parentb2febfff468e814aec6ad487112b51c937fb80e9 (diff)
downloadgdb-ee2c9aa984dae9b7dfd44ec42228d50757ff2496.zip
gdb-ee2c9aa984dae9b7dfd44ec42228d50757ff2496.tar.gz
gdb-ee2c9aa984dae9b7dfd44ec42228d50757ff2496.tar.bz2
* config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
as_bad calls to silence compiler warning.
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r--gas/config/tc-ppc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index 034eb8f..2515ab5 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -1632,7 +1632,7 @@ ppc_insert_operand (unsigned long insn,
errmsg = NULL;
insn = (*operand->insert) (insn, (long) val, ppc_cpu, &errmsg);
if (errmsg != (const char *) NULL)
- as_bad_where (file, line, errmsg);
+ as_bad_where (file, line, "%s", errmsg);
}
else
insn |= ((long) val & operand->bitm) << operand->shift;
@@ -2363,7 +2363,7 @@ md_assemble (char *str)
{
insn = (*operand->insert) (insn, 0L, ppc_cpu, &errmsg);
if (errmsg != (const char *) NULL)
- as_bad (errmsg);
+ as_bad ("%s", errmsg);
continue;
}
@@ -2376,7 +2376,7 @@ md_assemble (char *str)
{
insn = (*operand->insert) (insn, 0L, ppc_cpu, &errmsg);
if (errmsg != (const char *) NULL)
- as_bad (errmsg);
+ as_bad ("%s", errmsg);
}
if ((operand->flags & PPC_OPERAND_NEXT) != 0)
next_opindex = *opindex_ptr + 1;