diff options
author | Richard Sandiford <rsandifo@nildram.co.uk> | 2013-07-15 18:36:57 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@nildram.co.uk> | 2013-07-15 18:36:57 +0000 |
commit | d7df901e737a30ad05ea4c02491a58e6385833ff (patch) | |
tree | 26159106630875c2c057651e92f8c807830cbf1c | |
parent | 1ebdbeebde28a5e96eed8218dc39d3514938a351 (diff) | |
download | binutils-redhat-d7df901e737a30ad05ea4c02491a58e6385833ff.tar.gz |
gas/
* config/tc-mips.c (match_save_restore_list_operand): Avoid -Wformat
error with older GCCs.
(mips16_macro_build): Dereference args.
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 6277f2463d..0a9af0d11f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2013-07-15 Richard Sandiford <rdsandiford@googlemail.com> + + * config/tc-mips.c (match_save_restore_list_operand): Avoid -Wformat + error with older GCCs. + (mips16_macro_build): Dereference args. + 2013-07-14 Richard Sandiford <rdsandiford@googlemail.com> * config/tc-mips.c (mips_prefer_vec_regno, mips_parse_register): diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 1f9aa725ad..57df9a3722 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -4730,7 +4730,7 @@ match_save_restore_list_operand (struct mips_arg_info *arg) { if (arg->soft_match) return FALSE; - as_bad (error); + as_bad ("%s", error); } /* Finally build the instruction. */ @@ -7014,7 +7014,7 @@ mips16_macro_build (expressionS *ep, const char *name, const char *fmt, if (!operand) abort (); - insn_insert_operand (&insn, operand, va_arg (args, int)); + insn_insert_operand (&insn, operand, va_arg (*args, int)); break; } } |