2006-05-02 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 2 May 2006 14:24:03 +0000 (14:24 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 2 May 2006 14:24:03 +0000 (14:24 +0000)
    Jan Beulich  <jbeulich@novell.com>

* config/tc-i386.c (output_invalid_buf): Change size for
unsigned char.
* config/tc-tic30.c (output_invalid_buf): Likewise.

* config/tc-i386.c (output_invalid): Cast none-ascii char to
unsigned char.
* config/tc-tic30.c (output_invalid): Likewise.

gas/ChangeLog
gas/config/tc-i386.c
gas/config/tc-tic30.c

index baebce1ff80f479494890601421e615d3384436c..cb329d0baa17501e002cb9ea6292595dca10d8f7 100644 (file)
@@ -1,3 +1,14 @@
+2006-05-02  H.J. Lu  <hongjiu.lu@intel.com>
+           Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-i386.c (output_invalid_buf): Change size for
+       unsigned char.
+       * config/tc-tic30.c (output_invalid_buf): Likewise.
+
+       * config/tc-i386.c (output_invalid): Cast none-ascii char to
+       unsigned char.
+       * config/tc-tic30.c (output_invalid): Likewise.
+
 2006-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * doc/Makefile.am (AM_MAKEINFOFLAGS): New.
@@ -6,6 +17,18 @@
        * doc/as.texinfo: Don't use top_srcdir.
        * aclocal.m4, Makefile.in, doc/Makefile.in: Regenerated.
 
+2006-05-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/tc-i386.c (output_invalid_buf): Change size to 16.
+       * config/tc-tic30.c (output_invalid_buf): Likewise.
+
+       * config/tc-i386.c (output_invalid): Use snprintf instead of
+       sprintf.
+       * config/tc-ia64.c (declare_register_set): Likewise.
+       (emit_one_bundle): Likewise.
+       (check_dependencies): Likewise.
+       * config/tc-tic30.c (output_invalid): Likewise.
+
 2006-05-02  Paul Brook  <paul@codesourcery.com>
 
        * config/tc-arm.c (arm_optimize_expr): New function.
index cfebda03d06024d92b2904873c674227d0a21e44..8ceccbcb83eac5ababbea325a32f1cd4f2949b25 100644 (file)
@@ -5251,7 +5251,7 @@ md_atof (type, litP, sizeP)
   return 0;
 }
 \f
-static char output_invalid_buf[16];
+static char output_invalid_buf[sizeof (unsigned char) * 2 + 6];
 
 static char *
 output_invalid (c)
@@ -5262,7 +5262,7 @@ output_invalid (c)
              "'%c'", c);
   else
     snprintf (output_invalid_buf, sizeof (output_invalid_buf),
-             "(0x%x)", (unsigned) c);
+             "(0x%x)", (unsigned char) c);
   return output_invalid_buf;
 }
 
index aa0b7b7c24413c9e4697a0db934101abc922cabe..7b3439f8c724e6cf7fb4bb036f8531b99da65533 100644 (file)
@@ -273,7 +273,7 @@ struct tic30_insn
 struct tic30_insn insn;
 static int found_parallel_insn;
 
-static char output_invalid_buf[16];
+static char output_invalid_buf[sizeof (unsigned char) * 2 + 6];
 
 static char *
 output_invalid (char c)
@@ -283,7 +283,7 @@ output_invalid (char c)
              "'%c'", c);
   else
     snprintf (output_invalid_buf, sizeof (output_invalid_buf), 
-             "(0x%x)", (unsigned) c);
+             "(0x%x)", (unsigned char) c);
   return output_invalid_buf;
 }