summaryrefslogtreecommitdiff
path: root/gcc/libgcov.c
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-18 01:19:20 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-18 01:19:20 +0000
commit680a19b9f4ebb43da96fa302ccc3d9ee8ba9650c (patch)
tree47c51434efd5419a4c84affaa30de90732e3007d /gcc/libgcov.c
parent5d3e4e7d66f8389d3199c87133090fbfff6e09ba (diff)
downloadgcc-680a19b9f4ebb43da96fa302ccc3d9ee8ba9650c.tar.gz
* tree-vn.c (vn_add): Use XNEW.
* tree-ssa-ccp.c (ccp_initialize): Use XNEWVEC. (ccp_fold): Likewise. (fold_stmt_r): Use explicit cast to convert from void *. * tree-outof-ssa.c (new_temp_expr_table): Use XCNEWVEC. (new_temp_expr_table): Likewise. * gimplify.c (lookup_tmp_var): Use XNEW. (gimplify_asm_expr): Use explcit cast to convert from void *. * tree-into-ssa.c (get_ssa_name_ann): Likewise. (get_def_blocks_for): Use XNEW. (add_to_repl_tbl): Likewise. (mark_def_sites): Use explicit cast to convert from void *. (def_blocks_free): Likewise. (mark_def_sites_initialize_block): Likewise. (update_ssa): Use XNEWVEC. * tree-dfa.c (create_var_ann): Use GGC_NEW. (create_stmt_ann): Likewise. (create_tree_ann): Likewise. (referenced_var_insert): Likewise. (set_default_def): Likewise. (referenced_var_lookup_if_exists): Use explicit cast to * convert from void *. (referenced_var_lookup): Likewise. (default_def): Likewise. (set_default_def): Likewise. * tree-cfg.c (create_bb): Likewise. (edge_to_cases_cleanup): Likewise. (verify_node_sharing): Likewise. (record_switch_edge): Use XNEW. (cleanup_dead_labels): Use XCNEWVEC. (tree_duplicate_sese_region): Use XNEWVEC. * tree-scalar-evolution.c (get_instantiated_value): Likewise. * tree-ssa.c (verify_ssa): Use XCNEWVEC. (int_tree_map_eq): Use explicit cast to convert from void *. * libgcov.c (gcov_exit): Use explicit cast to convert from * void *. (__gcov_execl): Likewise. (__gcov_execlp): Likewise. (__gcov_execle): Likewise. * tree-eh.c (struct_ptr_eq): Likewise. (struct_ptr_hash): Likewise. (lookup_stmt_eh_region_fn): Likewise. (outside_finally_tree): Likewise. (find_goto_replacement): Likewise. (make_eh_edge): Likewise. (mark_eh_edge): Likewise. (add_stmt_to_eh_region_fn): Use GGC_NEW. (record_in_finally_tree): Use XNEW. (maybe_record_in_goto_queue): Use XRESIZEVEC. (lower_try_finally_copy): Use XCNEWVEC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108736 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/libgcov.c')
-rw-r--r--gcc/libgcov.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/libgcov.c b/gcc/libgcov.c
index de44d911f01..494759e6bed 100644
--- a/gcc/libgcov.c
+++ b/gcc/libgcov.c
@@ -218,7 +218,7 @@ gcov_exit (void)
prefix_length = 0;
/* Allocate and initialize the filename scratch space. */
- gi_filename = alloca (prefix_length + gcov_max_filename + 1);
+ gi_filename = (char *) alloca (prefix_length + gcov_max_filename + 1);
if (prefix_length)
memcpy (gi_filename, gcov_prefix, prefix_length);
gi_filename_up = gi_filename + prefix_length;
@@ -786,7 +786,7 @@ __gcov_execl (const char *path, const char *arg, ...)
length++;
va_end (ap);
- args = alloca (length * sizeof (void *));
+ args = (char **) alloca (length * sizeof (void *));
args[0] = (char *) arg;
for (i = 1; i < length; i++)
args[i] = va_arg (aq, char *);
@@ -817,7 +817,7 @@ __gcov_execlp (const char *path, const char *arg, ...)
length++;
va_end (ap);
- args = alloca (length * sizeof (void *));
+ args = (char **) alloca (length * sizeof (void *));
args[0] = (char *) arg;
for (i = 1; i < length; i++)
args[i] = va_arg (aq, char *);
@@ -849,7 +849,7 @@ __gcov_execle (const char *path, const char *arg, ...)
length++;
va_end (ap);
- args = alloca (length * sizeof (void *));
+ args = (char **) alloca (length * sizeof (void *));
args[0] = (char *) arg;
for (i = 1; i < length; i++)
args[i] = va_arg (aq, char *);