OSDN Git Service

* config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
authornathan <nathan>
Tue, 10 Feb 2009 08:07:31 +0000 (08:07 +0000)
committernathan <nathan>
Tue, 10 Feb 2009 08:07:31 +0000 (08:07 +0000)
as_bad calls to silence compiler warning.

gas/ChangeLog
gas/config/tc-ppc.c

index 94c615b..5b1b7ba 100644 (file)
@@ -1,3 +1,8 @@
+2009-02-10  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
+       as_bad calls to silence compiler warning.
+
 2009-02-06  Nick Clifton  <nickc@redhat.com>
 
        PR 9814
index 034eb8f..2515ab5 100644 (file)
@@ -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;