From ebbc7bdf8b4169ba4414b8eb7a22ad9dd8bc7be8 Mon Sep 17 00:00:00 2001 From: Erven Rohou Date: Tue, 5 May 2009 12:27:04 +0000 Subject: Fixed mismatch between function prototype and definition. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/st/cli-be@147124 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/cil32/cil-refs.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/gcc/config/cil32/cil-refs.c b/gcc/config/cil32/cil-refs.c index 0fa82089720..884fbc66b91 100644 --- a/gcc/config/cil32/cil-refs.c +++ b/gcc/config/cil32/cil-refs.c @@ -1,6 +1,6 @@ /* Database of entities referenced in a compilation unit implementation. - Copyright (C) 2006-2008 Free Software Foundation, Inc. + Copyright (C) 2006-2009 Free Software Foundation, Inc. This file is part of GCC. @@ -26,7 +26,8 @@ Authors: Contact information at STMicroelectronics: Andrea C. Ornstein -Erven Rohou +Contact information at INRIA: +Erven Rohou */ #include "config.h" @@ -71,7 +72,7 @@ static int fill_label_addrs (void **, void *); static bool mostly_zeros_p (tree); static bool all_zeros_p (tree); static void expand_init_to_stmt_list1 (tree, tree, tree *, bool, tree *, - void *, void *, unsigned HOST_WIDE_INT); + void *, void *, unsigned HOST_WIDE_INT); static int statement_list_num_instr (tree); /****************************************************************************** @@ -116,8 +117,8 @@ void refs_fini (void) /* Warning: these strings are not null-terminated */ static char * -append_string (char *str, const char *to_append, unsigned int *len, - unsigned int *max_len) +append_string (char *str, const char *to_append, size_t *len, + size_t *max_len) { size_t i, orig_len = *len; size_t append_len = strlen (to_append); @@ -127,7 +128,7 @@ append_string (char *str, const char *to_append, unsigned int *len, if (*len > *max_len) { while (*len > *max_len) - *max_len *= 2; + *max_len *= 2; str = XRESIZEVEC (char, str, *max_len); } @@ -141,7 +142,7 @@ append_string (char *str, const char *to_append, unsigned int *len, /* Warning: these strings are not null-terminated */ static char * append_coded_type (char *str, tree type, - unsigned int *len, unsigned int *max_len) + size_t *len, size_t *max_len) { unsigned HOST_WIDE_INT size; enum tree_code type_code; @@ -447,7 +448,7 @@ make_valuetype_identifier (tree t) } else { - /* Unnamed bitfields or unions */ + /* Unnamed bit-fields or unions */ tmp_name = append_string (tmp_name, "?unnamed", &tmp_name_len, &tmp_name_max_len); } @@ -678,7 +679,7 @@ promote_type_for_vararg (tree type) pointer: case POINTER_TYPE: - /* FIXME: cil32 is a 32bit machine, in case we support 64bit model + /* FIXME: cil32 is a 32-bit machine, in case we support 64-bit model changes are needed. */ return unsigned_intSI_type_node; -- cgit v1.2.3