Commit b1d0a338 by Jan Hubicka Committed by Jan Hubicka

re PR middle-end/37448 (cannot compile big function)


	PR middle-end/37448
	* cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.

From-SVN: r140284
parent 9e504cda
2008-09-11 Jan Hubicka <jh@suse.cz> 2008-09-11 Jan Hubicka <jh@suse.cz>
PR middle-end/37448
* cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
2008-09-11 Jan Hubicka <jh@suse.cz>
* tree-ssa-pre.c (phi_translate_1): Fix memory leak * tree-ssa-pre.c (phi_translate_1): Fix memory leak
2008-09-11 Jan Hubicka <jh@suse.cz> 2008-09-11 Jan Hubicka <jh@suse.cz>
......
...@@ -636,11 +636,11 @@ cgraph_create_edge (struct cgraph_node *caller, struct cgraph_node *callee, ...@@ -636,11 +636,11 @@ cgraph_create_edge (struct cgraph_node *caller, struct cgraph_node *callee,
gimple call_stmt, gcov_type count, int freq, int nest) gimple call_stmt, gcov_type count, int freq, int nest)
{ {
struct cgraph_edge *edge = GGC_NEW (struct cgraph_edge); struct cgraph_edge *edge = GGC_NEW (struct cgraph_edge);
#ifdef ENABLE_CHECKING
struct cgraph_edge *e;
for (e = caller->callees; e; e = e->next_callee) #ifdef ENABLE_CHECKING
gcc_assert (e->call_stmt != call_stmt); /* This is rather pricely check possibly trigerring construction of call stmt
hashtable. */
gcc_assert (!cgraph_edge (caller, call_stmt));
#endif #endif
gcc_assert (is_gimple_call (call_stmt)); gcc_assert (is_gimple_call (call_stmt));
......
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