PR 9874
authorNick Clifton <nickc@redhat.com>
Mon, 2 Mar 2009 14:47:38 +0000 (14:47 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 2 Mar 2009 14:47:38 +0000 (14:47 +0000)
        * config/tc-ia64.c (fix_insn): Fix warning reported by
        -Wformat-security.

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

index bcf762d165141c9c538573dcb68e8b03c3c4f968..7bd0ec2e46598623f62e7da8c6282bf27c21c17a 100644 (file)
@@ -1,3 +1,9 @@
+2009-03-02  Nick Clifton  <nickc@redhat.com>
+
+       PR 9874
+       * config/tc-ia64.c (fix_insn): Fix warning reported by
+       -Wformat-security.
+
 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
 
        * config/tc-score7.c: New file.
index 7c369d405b1cb6de901fb1f28c1668116c54d645..2113fa44f6cd852862af1a40374b92ce59bf861c 100644 (file)
@@ -11175,7 +11175,7 @@ fix_insn (fixS *fix, const struct ia64_operand *odesc, valueT value)
     err = (*odesc->insert) (odesc, value, insn + slot);
 
   if (err)
-    as_bad_where (fix->fx_file, fix->fx_line, err);
+    as_bad_where (fix->fx_file, fix->fx_line, "%s", err);
 
   t0 = control_bits | (insn[0] << 5) | (insn[1] << 46);
   t1 = ((insn[1] >> 18) & 0x7fffff) | (insn[2] << 23);