* config/tc-ia64.c (fix_insn): Fix warning reported by
        -Wformat-security.
This commit is contained in:
Nick Clifton 2009-03-02 14:47:38 +00:00
parent c7c1befafb
commit 83cf10fd4a
2 changed files with 7 additions and 1 deletions

View 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.

View 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);