diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-17 20:45:46 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-17 20:45:46 +0000 |
commit | a9c6c0e340f7b8deeb93cd6f5c918c5d154e4cba (patch) | |
tree | 50983d29e1f2d95d1c133d691fc5d44215ddacbf /gcc/tree-scalar-evolution.c | |
parent | fb6e45cd3925cef0b7ac1fec78669cda196eeda9 (diff) | |
download | gcc-a9c6c0e340f7b8deeb93cd6f5c918c5d154e4cba.tar.gz |
* tree-inline.c (copy_body_r): Use explicit cast when
converting
from void *.
(copy_bb): Likewise.
(copy_edges_for_bb): Likewise.
(remap_decl_1): Likewise.
(estimate_num_insns_1): Likewise.
* cgraph.c (hash_node): Use explicit cast when converting from
void *.
(eq_node): Likewise.
(cgraph_create_node): Use GGC_CNEW.
(cgraph_create_edge): Use GGC_NEW.
(cgraph_remove_node): Use explicit cast when converting from
void *.
(hash_varpool_node): Likewise.
(eq_varpool_node): Likewise.
(cgraph_varpool_node): Use GGC_CNEW.
* lambda.h (lambda_vector_new): Use GGC_CNEWVEC.
* tree-scalar-evolution.c (new_scev_info_str): Use XNEW.
(eq_scev_info): Use explicit cast when converting from void *.
(find_var_scev_info): Likewise.
(set_instantiated_value): Likewise.
(gather_stats_on_scev_database_1): Likewise.
* cfgloop.h (simple_loop_desc): Use explicit cast when
converting
from void *.
* c-pch.c (c_common_write_pch): Use XNEWVEC.
(c_common_read_pch): Likewise.
* prefix.c (save_string): Use XNEWVEC.
(translate_name): Use explicit cast when converting from void
*.
* c-ppoutput.c (print_line): Use explicit cast when converting
from void *.
(pp_dir_change): Likewise.
* c-cppbuiltin.c (builtin_define_std): Likewise.
(builtin_define_with_value): Likewise.
(builtin_define_with_value_n): Likewise.
(builtin_define_with_int_value): Likewise.
(builtin_define_type_max): Likewise.
* c-incpath.c (add_env_var_paths): Use XNEWVEC.
(add_path): Use XNEW.
* c-format.c (check_format_info_main): Use GGC_NEW.
(format_type_warning): Use explicit cast when converting from
void *.
* c-typeck.c (alloc_tagged_tu_seen_cache): Use XNEW instead of
xmalloc.
(start_init): Likewise.
* tree-flow-inline.h (first_referenced_var): Use explicit cast
when converting from void *.
(next_referenced_var): Likewise.
* c-pragma.c (push_alignment): Use GGC_NEW instead of
ggc_alloc.
* gensupport.c (lookup_predicate): Use explicit cast to
convert
from void *.
(init_predicate_table): Use XCNEW instead of xcalloc.
* genpreds.c (process_define_predicate): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108723 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r-- | gcc/tree-scalar-evolution.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c index bd15ae9cb2c..116773b9f99 100644 --- a/gcc/tree-scalar-evolution.c +++ b/gcc/tree-scalar-evolution.c @@ -296,7 +296,7 @@ new_scev_info_str (tree var) { struct scev_info_str *res; - res = xmalloc (sizeof (struct scev_info_str)); + res = XNEW (struct scev_info_str); res->var = var; res->chrec = chrec_not_analyzed_yet; @@ -316,8 +316,8 @@ hash_scev_info (const void *elt) static int eq_scev_info (const void *e1, const void *e2) { - const struct scev_info_str *elt1 = e1; - const struct scev_info_str *elt2 = e2; + const struct scev_info_str *elt1 = (const struct scev_info_str *) e1; + const struct scev_info_str *elt2 = (const struct scev_info_str *) e2; return elt1->var == elt2->var; } @@ -346,7 +346,7 @@ find_var_scev_info (tree var) if (!*slot) *slot = new_scev_info_str (var); - res = *slot; + res = (struct scev_info_str *) *slot; return &res->chrec; } @@ -1886,10 +1886,9 @@ set_instantiated_value (htab_t cache, tree version, tree val) pattern.var = version; slot = htab_find_slot (cache, &pattern, INSERT); - if (*slot) - info = *slot; - else - info = *slot = new_scev_info_str (version); + if (!*slot) + *slot = new_scev_info_str (version); + info = (struct scev_info_str *) *slot; info->chrec = val; } @@ -2479,9 +2478,9 @@ analyze_scalar_evolution_for_all_loop_phi_nodes (VEC(tree,heap) **exit_condition static int gather_stats_on_scev_database_1 (void **slot, void *stats) { - struct scev_info_str *entry = *slot; + struct scev_info_str *entry = (struct scev_info_str *) *slot; - gather_chrec_stats (entry->chrec, stats); + gather_chrec_stats (entry->chrec, (struct chrec_stats *) stats); return 1; } |