diff options
author | Bernardo Innocenti <bernie@develer.com> | 2004-07-26 00:17:02 +0200 |
---|---|---|
committer | Bernardo Innocenti <bernie@gcc.gnu.org> | 2004-07-26 00:17:02 +0200 |
commit | 28dab13236a7f958a8dc533363dcbe8e18eeeae5 (patch) | |
tree | d4ef1636ca1b7a8d3ec231e0f5b6e84697ddeb94 /gcc/c-common.c | |
parent | 4f3d87d661d99cb035d4f5cf72164f785fa270fc (diff) | |
download | gcc-28dab13236a7f958a8dc533363dcbe8e18eeeae5.zip gcc-28dab13236a7f958a8dc533363dcbe8e18eeeae5.tar.gz gcc-28dab13236a7f958a8dc533363dcbe8e18eeeae5.tar.bz2 |
basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
* basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
* c-common.c: Add missing casts from void * to other types.
* c-decl.c: Likewise.
* c-format.c: Likewise.
* c-lex.c: Likewise.
* c-pragma.c: Likewise.
* c-typeck.c: Likewise.
* defaults.h: Likewise.
* genconstants.c: Likewise.
* gengtype-lex.l: Likewise.
* genmodes.c: Likewise.
* read-rtl.c: Likewise.
* rtl.c: Likewise.
From-SVN: r85166
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 2452036..ddd8e87 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -740,7 +740,7 @@ fname_as_string (int pretty_p) int len = strlen (name) + 3; /* Two for '"'s. One for NULL. */ cpp_string cstr = { 0, 0 }, strname; - namep = xmalloc (len); + namep = XNEWVEC (char, len); snprintf (namep, len, "\"%s\"", name); strname.text = (unsigned char *) namep; strname.len = len - 1; @@ -1394,7 +1394,7 @@ verify_sequence_points (tree expr) if (tlist_firstobj == 0) { gcc_obstack_init (&tlist_obstack); - tlist_firstobj = obstack_alloc (&tlist_obstack, 0); + tlist_firstobj = (char *) obstack_alloc (&tlist_obstack, 0); } verify_tree (expr, &before_sp, &after_sp, 0); @@ -2762,7 +2762,7 @@ c_sizeof_or_alignof_type (tree type, enum tree_code op, int complain) } else { - if (op == SIZEOF_EXPR) + if (op == (enum tree_code) SIZEOF_EXPR) /* Convert in case a char is more than one unit. */ value = size_binop (CEIL_DIV_EXPR, TYPE_SIZE_UNIT (type), size_int (TYPE_PRECISION (char_type_node) @@ -3658,7 +3658,7 @@ static int match_case_to_enum (splay_tree_node node, void *data) { tree label = (tree) node->value; - tree type = data; + tree type = (tree) data; /* Skip default case. */ if (!CASE_LOW (label)) @@ -4280,7 +4280,7 @@ handle_mode_attribute (tree *node, tree name, tree args, if (len > 4 && p[0] == '_' && p[1] == '_' && p[len - 1] == '_' && p[len - 2] == '_') { - char *newp = alloca (len - 1); + char *newp = (char *) alloca (len - 1); strcpy (newp, &p[2]); newp[len - 4] = '\0'; @@ -5199,8 +5199,9 @@ check_function_arguments_recurse (void (*callback) int field_decl_cmp (const void *x_p, const void *y_p) { - const tree *const x = x_p; - const tree *const y = y_p; + const tree *const x = (const tree *const) x_p; + const tree *const y = (const tree *const) y_p; + if (DECL_NAME (*x) == DECL_NAME (*y)) /* A nontype is "greater" than a type. */ return (TREE_CODE (*y) == TYPE_DECL) - (TREE_CODE (*x) == TYPE_DECL); @@ -5224,8 +5225,8 @@ pointer operator in resort_data. */ static int resort_field_decl_cmp (const void *x_p, const void *y_p) { - const tree *const x = x_p; - const tree *const y = y_p; + const tree *const x = (const tree *const) x_p; + const tree *const y = (const tree *const) y_p; if (DECL_NAME (*x) == DECL_NAME (*y)) /* A nontype is "greater" than a type. */ |