From 2d545b822e56d78c142866649b797aa7e831a661 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 2 May 2006 14:24:03 +0000 Subject: [PATCH] 2006-05-02 H.J. Lu Jan Beulich * 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 | 23 +++++++++++++++++++++++ gas/config/tc-i386.c | 4 ++-- gas/config/tc-tic30.c | 4 ++-- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index baebce1ff80..cb329d0baa1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,14 @@ +2006-05-02 H.J. Lu + Jan Beulich + + * 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 * 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 + + * 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 * config/tc-arm.c (arm_optimize_expr): New function. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index cfebda03d06..8ceccbcb83e 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -5251,7 +5251,7 @@ md_atof (type, litP, sizeP) return 0; } -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; } diff --git a/gas/config/tc-tic30.c b/gas/config/tc-tic30.c index aa0b7b7c244..7b3439f8c72 100644 --- a/gas/config/tc-tic30.c +++ b/gas/config/tc-tic30.c @@ -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; } -- 2.30.2