diff options
| author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2003-06-29 10:55:33 +0000 |
|---|---|---|
| committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2003-06-29 10:55:33 +0000 |
| commit | 748f6cb5d434ae69a5b6a65e521859d02af8bd68 (patch) | |
| tree | 6047c3a0bbc04369e16e3bba3392d190bc65a745 | |
| parent | 90319d169817d2874c187fb4f94acb23ff159e53 (diff) | |
| download | gcc-748f6cb5d434ae69a5b6a65e521859d02af8bd68.zip gcc-748f6cb5d434ae69a5b6a65e521859d02af8bd68.tar.gz gcc-748f6cb5d434ae69a5b6a65e521859d02af8bd68.tar.bz2 | |
error.c (print_integer): Remove.
* error.c (print_integer): Remove.
(dump_type_suffix): Adjust.
(dump_expr): Likewise.
From-SVN: r68665
| -rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/cp/error.c | 12 |
2 files changed, 8 insertions, 10 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ae461ed..da6308e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2003-06-29 Gabriel Dos Reis <gdr@integrable-solutions.net> + + * error.c (print_integer): Remove. + (dump_type_suffix): Adjust. + (dump_expr): Likewise. + 2003-06-28 Nathan Sidwell <nathan@codesourcery.com> * error.c (print_instantiation_partial_context): Take a diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 9962485..f090a22 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -111,7 +111,6 @@ static void cp_print_error_function (diagnostic_context *, diagnostic_info *); static bool cp_printer (output_buffer *, text_info *); static void print_non_consecutive_character (output_buffer *, int); -static void print_integer (output_buffer *, HOST_WIDE_INT); static tree locate_error (const char *, va_list); static location_t location_of (tree); @@ -725,7 +724,7 @@ dump_type_suffix (tree t, int flags) if (TYPE_DOMAIN (t)) { if (host_integerp (TYPE_MAX_VALUE (TYPE_DOMAIN (t)), 0)) - print_integer + output_host_wide_integer (scratch_buffer, tree_low_cst (TYPE_MAX_VALUE (TYPE_DOMAIN (t)), 0) + 1); else if (TREE_CODE (TYPE_MAX_VALUE (TYPE_DOMAIN (t))) == MINUS_EXPR) @@ -1477,7 +1476,7 @@ dump_expr (tree t, int flags) output_add_string (scratch_buffer, digit_buffer); } else - print_integer (scratch_buffer, TREE_INT_CST_LOW (t)); + output_host_wide_integer (scratch_buffer, TREE_INT_CST_LOW (t)); } } break; @@ -2503,13 +2502,6 @@ cp_printer (output_buffer *buffer, text_info *text) } static void -print_integer (output_buffer *buffer, HOST_WIDE_INT i) -{ - sprintf (digit_buffer, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) i); - output_add_string (buffer, digit_buffer); -} - -static void print_non_consecutive_character (output_buffer *buffer, int c) { const char *p = output_last_position (buffer); |
