Module Name: src
Committed By: snj
Date: Sun Nov 15 22:17:03 UTC 2009
Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-ppc.c
Log Message:
Pull in fixes from upstream revision 1.146 to avoid string formatting
warnings. Fixes build with newer GCC, like the one in Snow Leopard.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/binutils/dist/gas/config/tc-ppc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/binutils/dist/gas/config/tc-ppc.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-ppc.c:1.1.1.1 src/external/gpl3/binutils/dist/gas/config/tc-ppc.c:1.2
--- src/external/gpl3/binutils/dist/gas/config/tc-ppc.c:1.1.1.1 Tue Aug 18 09:35:16 2009
+++ src/external/gpl3/binutils/dist/gas/config/tc-ppc.c Sun Nov 15 22:17:03 2009
@@ -1656,7 +1656,7 @@
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;
@@ -2387,7 +2387,7 @@
{
insn = (*operand->insert) (insn, 0L, ppc_cpu, &errmsg);
if (errmsg != (const char *) NULL)
- as_bad (errmsg);
+ as_bad ("%s", errmsg);
continue;
}
@@ -2400,7 +2400,7 @@
{
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;