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/ab7c69d40745
branches:  trunk
changeset: 749058:ab7c69d40745
user:      snj <snj%NetBSD.org@localhost>
date:      Sun Nov 15 19:51:49 2009 +0000

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

diffstat:

 external/gpl3/binutils/dist/gas/config/tc-alpha.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 8abce4d59fd8 -r ab7c69d40745 external/gpl3/binutils/dist/gas/config/tc-alpha.c
--- a/external/gpl3/binutils/dist/gas/config/tc-alpha.c Sun Nov 15 18:43:28 2009 +0000
+++ b/external/gpl3/binutils/dist/gas/config/tc-alpha.c Sun Nov 15 19:51:49 2009 +0000
@@ -549,7 +549,7 @@
       strcpy (info->string, buffer);
       errmsg = hash_insert (alpha_literal_hash, info->string, (void *) info);
       if (errmsg)
-       as_fatal (errmsg);
+       as_fatal ("%s", errmsg);
     }
 
   return info;
@@ -1829,7 +1829,7 @@
 
       insn = (*operand->insert) (insn, val, &errmsg);
       if (errmsg)
-       as_warn (errmsg);
+       as_warn ("%s", errmsg);
     }
   else
     insn |= ((val & ((1 << operand->bits) - 1)) << operand->shift);



Home | Main Index | Thread Index | Old Index