This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[mips] fix build breakage
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: binutils <binutils at sources dot redhat dot com>
- Date: Wed, 22 Apr 2009 12:41:46 +0100
- Subject: [mips] fix build breakage
I hit the same compiler formate checking bug with mips as I previously hit on
ppc. I've checked in this obvious fix.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
* config/tc-mips.c (macro_end, md_convert_frag): Use '%s' for
as_bad calls to silence compiler warning.
Index: config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.405
diff -c -3 -p -r1.405 tc-mips.c
*** config/tc-mips.c 9 Apr 2009 15:55:59 -0000 1.405
--- config/tc-mips.c 22 Apr 2009 11:39:45 -0000
*************** macro_end (void)
*** 3575,3581 ****
warning now. */
const char *msg = macro_warning (subtype);
if (msg != 0)
! as_warn (msg);
}
else
{
--- 3575,3581 ----
warning now. */
const char *msg = macro_warning (subtype);
if (msg != 0)
! as_warn ("%s", msg);
}
else
{
*************** md_convert_frag (bfd *abfd ATTRIBUTE_UNU
*** 14633,14639 ****
{
const char *msg = macro_warning (fragp->fr_subtype);
if (msg != 0)
! as_warn_where (fragp->fr_file, fragp->fr_line, msg);
}
/* Go through all the fixups for the first sequence. Disable them
--- 14633,14639 ----
{
const char *msg = macro_warning (fragp->fr_subtype);
if (msg != 0)
! as_warn_where (fragp->fr_file, fragp->fr_line, "%s", msg);
}
/* Go through all the fixups for the first sequence. Disable them