[Patch] Not very subtle fix for pr61510

gcc/

	PR regression/61510
	* cgraphunit.c (analyze_functions): Use get_create rather than get
	for decls which are clones of abstract functions.

From-SVN: r213425
This commit is contained in:
James Greenhalgh 2014-08-01 08:56:05 +00:00 committed by James Greenhalgh
parent 3849c24686
commit c84495c0e1
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
PR regression/61510
* cgraphunit.c (analyze_functions): Use get_create rather than get
for decls which are clones of abstract functions.
2014-08-01 Martin Liska <mliska@suse.cz>
* gimple-iterator.h (gsi_next_nonvirtual_phi): New function.

View File

@ -1047,7 +1047,7 @@ analyze_functions (void)
if (DECL_ABSTRACT_ORIGIN (decl))
{
struct cgraph_node *origin_node
= cgraph_node::get (DECL_ABSTRACT_ORIGIN (decl));
= cgraph_node::get_create (DECL_ABSTRACT_ORIGIN (decl));
origin_node->used_as_abstract_origin = true;
}
}