aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphclones.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2014-09-10 13:36:29 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2014-09-10 13:36:29 +0200
commit77b7d74bf69cc11794079801e9c4b7bdaa7c4b16 (patch)
tree2688547317992efb858cd32a074c6de325ec8d25 /gcc/cgraphclones.c
parentbec6320858ac191ce070cb789fc55792a73084da (diff)
downloadgcc-77b7d74bf69cc11794079801e9c4b7bdaa7c4b16.zip
gcc-77b7d74bf69cc11794079801e9c4b7bdaa7c4b16.tar.gz
gcc-77b7d74bf69cc11794079801e9c4b7bdaa7c4b16.tar.bz2
cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
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
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r--gcc/cgraphclones.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c
index 2a17de5..224bb55 100644
--- a/gcc/cgraphclones.c
+++ b/gcc/cgraphclones.c
@@ -371,9 +371,7 @@ duplicate_thunk_for_node (cgraph_node *thunk, cgraph_node *node)
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 ();