Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/gas/config Pull in fixes from up...



details:   https://anonhg.NetBSD.org/src/rev/7bb83fb19be2
branches:  trunk
changeset: 749068:7bb83fb19be2
user:      snj <snj%NetBSD.org@localhost>
date:      Sun Nov 15 22:17:03 2009 +0000

description:
Pull in fixes from upstream revision 1.146 to avoid string formatting
warnings.  Fixes build with newer GCC, like the one in Snow Leopard.

diffstat:

 external/gpl3/binutils/dist/gas/config/tc-ppc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r d8d750e5cd5f -r 7bb83fb19be2 external/gpl3/binutils/dist/gas/config/tc-ppc.c
--- a/external/gpl3/binutils/dist/gas/config/tc-ppc.c   Sun Nov 15 21:57:49 2009 +0000
+++ b/external/gpl3/binutils/dist/gas/config/tc-ppc.c   Sun Nov 15 22:17:03 2009 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index