Commit dda88f6f by Kazu Hirata Committed by Kazu Hirata

cfg.c (flow_obstack): Remove.

	* cfg.c (flow_obstack): Remove.
	(flow_firstobj): Likewise.
	(init_flow): Remove all uses of flow_obstack.

From-SVN: r91477
parent 4edbbd3f
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
* tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
only when needed. only when needed.
* cfg.c (flow_obstack): Remove.
(flow_firstobj): Likewise.
(init_flow): Remove all uses of flow_obstack.
2004-11-29 Alan Modra <amodra@bigpond.net.au> 2004-11-29 Alan Modra <amodra@bigpond.net.au>
* varasm.c (default_elf_select_section_1): Only pass DECL_P decl * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
......
...@@ -66,8 +66,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -66,8 +66,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* The obstack on which the flow graph components are allocated. */ /* The obstack on which the flow graph components are allocated. */
struct bitmap_obstack reg_obstack; struct bitmap_obstack reg_obstack;
struct obstack flow_obstack;
static char *flow_firstobj;
/* Number of basic blocks in the current function. */ /* Number of basic blocks in the current function. */
...@@ -102,22 +100,8 @@ enum profile_status profile_status; ...@@ -102,22 +100,8 @@ enum profile_status profile_status;
void void
init_flow (void) init_flow (void)
{ {
static int initialized;
n_edges = 0; n_edges = 0;
if (!initialized)
{
gcc_obstack_init (&flow_obstack);
flow_firstobj = obstack_alloc (&flow_obstack, 0);
initialized = 1;
}
else
{
obstack_free (&flow_obstack, flow_firstobj);
flow_firstobj = obstack_alloc (&flow_obstack, 0);
}
ENTRY_BLOCK_PTR = ggc_alloc_cleared (sizeof (*ENTRY_BLOCK_PTR)); ENTRY_BLOCK_PTR = ggc_alloc_cleared (sizeof (*ENTRY_BLOCK_PTR));
ENTRY_BLOCK_PTR->index = ENTRY_BLOCK; ENTRY_BLOCK_PTR->index = ENTRY_BLOCK;
EXIT_BLOCK_PTR = ggc_alloc_cleared (sizeof (*EXIT_BLOCK_PTR)); EXIT_BLOCK_PTR = ggc_alloc_cleared (sizeof (*EXIT_BLOCK_PTR));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment