2014-09-10 Martin Jambor <mjambor@suse.cz>
* cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
(analyze): Do not set analyze flag if expand_thunk returns false;.
(create_wrapper): Likewise.
* cgraphclones.c (duplicate_thunk_for_node): Likewise.
From-SVN: r215123
+2014-09-10 Martin Jambor <mjambor@suse.cz>
+
+ * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
+ (analyze): Do not set analyze flag if expand_thunk returns false;.
+ (create_wrapper): Likewise.
+ * cgraphclones.c (duplicate_thunk_for_node): Likewise.
+
2014-09-10 Martin Jambor <mjambor@suse.cz>
PR ipa/61654
CGRAPH_FREQ_BASE);
e->call_stmt_cannot_inline_p = true;
symtab->call_edge_duplication_hooks (thunk->callees, e);
- if (!new_thunk->expand_thunk (false, false))
- new_thunk->analyzed = true;
- else
+ if (new_thunk->expand_thunk (false, false))
{
new_thunk->thunk.thunk_p = false;
new_thunk->analyze ();
if (!expand_thunk (false, false))
{
thunk.alias = NULL;
- analyzed = true;
return;
}
thunk.alias = NULL;
tree restype = TREE_TYPE (TREE_TYPE (thunk_fndecl));
if (!output_asm_thunks)
- return false;
+ {
+ analyzed = true;
+ return false;
+ }
if (in_lto_p)
get_body ();
cgraph_edge *e = create_edge (target, NULL, 0, CGRAPH_FREQ_BASE);
- if (!expand_thunk (false, true))
- analyzed = true;
-
+ expand_thunk (false, true);
e->call_stmt_cannot_inline_p = true;
/* Inline summary set-up. */