Mercurial > hg > CbC > CbC_gcc
diff gcc/cfg.c @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | b7f97abdc517 |
children | 04ced10e8804 |
line wrap: on
line diff
--- a/gcc/cfg.c Tue May 25 18:58:51 2010 +0900 +++ b/gcc/cfg.c Tue Mar 22 17:18:12 2011 +0900 @@ -57,7 +57,7 @@ #include "output.h" #include "function.h" #include "except.h" -#include "toplev.h" +#include "diagnostic-core.h" #include "tm_p.h" #include "obstack.h" #include "timevar.h" @@ -84,13 +84,13 @@ init_flow (struct function *the_fun) { if (!the_fun->cfg) - the_fun->cfg = GGC_CNEW (struct control_flow_graph); + the_fun->cfg = ggc_alloc_cleared_control_flow_graph (); n_edges_for_function (the_fun) = 0; ENTRY_BLOCK_PTR_FOR_FUNCTION (the_fun) - = GGC_CNEW (struct basic_block_def); + = ggc_alloc_cleared_basic_block_def (); ENTRY_BLOCK_PTR_FOR_FUNCTION (the_fun)->index = ENTRY_BLOCK; EXIT_BLOCK_PTR_FOR_FUNCTION (the_fun) - = GGC_CNEW (struct basic_block_def); + = ggc_alloc_cleared_basic_block_def (); EXIT_BLOCK_PTR_FOR_FUNCTION (the_fun)->index = EXIT_BLOCK; ENTRY_BLOCK_PTR_FOR_FUNCTION (the_fun)->next_bb = EXIT_BLOCK_PTR_FOR_FUNCTION (the_fun); @@ -139,7 +139,7 @@ alloc_block (void) { basic_block bb; - bb = GGC_CNEW (struct basic_block_def); + bb = ggc_alloc_cleared_basic_block_def (); return bb; } @@ -277,7 +277,7 @@ unchecked_make_edge (basic_block src, basic_block dst, int flags) { edge e; - e = GGC_CNEW (struct edge_def); + e = ggc_alloc_cleared_edge_def (); n_edges++; e->src = src; @@ -514,7 +514,7 @@ stream. This function is designed to be used from within the debugger. */ -void +DEBUG_FUNCTION void debug_regset (regset r) { dump_regset (r, stderr); @@ -668,7 +668,7 @@ putc ('\n', file); } -void +DEBUG_FUNCTION void debug_flow_info (void) { dump_flow_info (stderr, TDF_DETAILS); @@ -734,7 +734,7 @@ /* Allocate a memory block of SIZE as BB->aux. The obstack must be first initialized by alloc_aux_for_blocks. */ -void +static void alloc_aux_for_block (basic_block bb, int size) { /* Verify that aux field is clear. */ @@ -765,7 +765,7 @@ { basic_block bb; - FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR, NULL, next_bb) + FOR_ALL_BB (bb) alloc_aux_for_block (bb, size); } } @@ -777,7 +777,7 @@ { basic_block bb; - FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR, NULL, next_bb) + FOR_ALL_BB (bb) bb->aux = NULL; } @@ -797,7 +797,7 @@ /* Allocate a memory edge of SIZE as BB->aux. The obstack must be first initialized by alloc_aux_for_edges. */ -void +static void alloc_aux_for_edge (edge e, int size) { /* Verify that aux field is clear. */ @@ -868,13 +868,13 @@ clear_aux_for_edges (); } -void +DEBUG_FUNCTION void debug_bb (basic_block bb) { dump_bb (bb, stderr, 0); } -basic_block +DEBUG_FUNCTION basic_block debug_bb_n (int n) { basic_block bb = BASIC_BLOCK (n);