diff options
author | tneumann <tneumann@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-05 15:41:04 +0000 |
---|---|---|
committer | tneumann <tneumann@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-05 15:41:04 +0000 |
commit | f780cc25eaffc78f268a94471da728ac7945751f (patch) | |
tree | f12abaf00f4ac040bcdbeb67b7ce6b482e1ffff4 /gcc/cfgloop.c | |
parent | d8f696cf2564f0277efec602a07dc6ff29da8d2a (diff) | |
download | gcc-f780cc25eaffc78f268a94471da728ac7945751f.tar.gz |
* cfg.c (init_flow): Use type safe memory macros.
(alloc_block): Likewise.
(unchecked_make_edge): Likewise.
(dump_flow_info): Avoid using C++ keywords as variable names.
(copy_original_table_clear): Cast according to the coding conventions.
(copy_original_table_set): Likewise.
* cfgexpand (label_rtx_for_bb): Likewise.
(expand_gimüle_basic_block): Likewise.
* cfghooks.c (dump_bb): Likewise.
(lv_adjust_loop_header_phi): Avoid using C++ keywords as variable names.
(lv_add_condition_to_bb): Likewise.
* cfglayout (relink_block_chain): Cast according to the coding
conventions.
(fixup_reorder_chain): Likewise.
(fixup_fallthru_exit_predecessor): Likewise.
* cfgloop.c (glb_enum_p): Likewise.
(get_exit_description): Likewise.
(dump_recorded_exit): Likewise.
* cfgloop.h (enum loop_estimation): Move out of struct scope...
(struct loop): ... from here.
* cfgloopmanip (rpe_enum_p): Cast according to the coding conventions.
* cfgrtl.c (rtl_create_basic_block): Likewise.
(rtl_split_block): Likewise.
(rtl_dump_bb): Likewise.
(cfg_layout_split_block): Likewise.
(init_rtl_bb_info): Use typesafe memory macros.
* graphds.h (struct graph_edge): Renamed edge to graph_edge.
* graphds.h: Updated all usages of edge to graph_edge.
* graphds.c: Likewise.
* cfgloopanal.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125336 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgloop.c')
-rw-r--r-- | gcc/cfgloop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c index 66461d994af..8e1edbddc68 100644 --- a/gcc/cfgloop.c +++ b/gcc/cfgloop.c @@ -776,7 +776,7 @@ flow_bb_inside_loop_p (const struct loop *loop, const basic_block bb) static bool glb_enum_p (basic_block bb, void *glb_loop) { - struct loop *loop = glb_loop; + struct loop *loop = (struct loop *) glb_loop; return (bb != loop->header && dominated_by_p (CDI_DOMINATORS, bb, loop->header)); } @@ -974,8 +974,8 @@ loop_exit_free (void *ex) static struct loop_exit * get_exit_descriptions (edge e) { - return htab_find_with_hash (current_loops->exits, e, - htab_hash_pointer (e)); + return (struct loop_exit *) htab_find_with_hash (current_loops->exits, e, + htab_hash_pointer (e)); } /* Updates the lists of loop exits in that E appears. @@ -1075,14 +1075,14 @@ record_loop_exits (void) static int dump_recorded_exit (void **slot, void *file) { - struct loop_exit *exit = *slot; + struct loop_exit *exit = (struct loop_exit *) *slot; unsigned n = 0; edge e = exit->e; for (; exit != NULL; exit = exit->next_e) n++; - fprintf (file, "Edge %d->%d exits %u loops\n", + fprintf ((FILE*) file, "Edge %d->%d exits %u loops\n", e->src->index, e->dest->index, n); return 1; |