aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-05-18 01:12:14 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-05-17 23:12:14 +0000
commit36576655d8466c9fa618c1da341b8dd2364a7f81 (patch)
tree0f2fbe98708e13805e97bc7b12c5a0033f23ce51 /gcc/lto
parent922f15c273e96e7bff9fecb9c0cbd90a5709f839 (diff)
downloadgcc-36576655d8466c9fa618c1da341b8dd2364a7f81.zip
gcc-36576655d8466c9fa618c1da341b8dd2364a7f81.tar.gz
gcc-36576655d8466c9fa618c1da341b8dd2364a7f81.tar.bz2
cgraph.c (cgraph_create_virtual_clone): Only check versionable_function_p when not in wpa and checking is enabled.
* cgraph.c (cgraph_create_virtual_clone): Only check versionable_function_p when not in wpa and checking is enabled. * cgrpahunit.c (cgraph_materialize_all_clones): Stabilize after there are no more functions to materialize. * lto/lto.c (lto_1_to_1_map): Partition non-inline clones. (lto_promote_cross_file_statics): Deal with non-inline clones. From-SVN: r159518
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog5
-rw-r--r--gcc/lto/lto.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index e5abeb1..b26268a 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,5 +1,10 @@
2010-05-18 Jan Hubicka <jh@suse.cz>
+ * lto/lto.c (lto_1_to_1_map): Partition non-inline clones.
+ (lto_promote_cross_file_statics): Deal with non-inline clones.
+
+2010-05-18 Jan Hubicka <jh@suse.cz>
+
* lto.c (lto_materialize_function): Announce function when
reading body; allocate_struct_function only when reading body;
do not finalize local statics; ggc_collect after reading;
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index ab55c12..adfeae9 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -537,9 +537,8 @@ lto_1_to_1_map (void)
for (node = cgraph_nodes; node; node = node->next)
{
- /* We will get proper partition based on function they are inlined to or
- cloned from. */
- if (node->global.inlined_to || node->clone_of)
+ /* We will get proper partition based on function they are inlined to. */
+ if (node->global.inlined_to)
continue;
/* Nodes without a body do not need partitioning. */
if (!node->analyzed)
@@ -721,7 +720,7 @@ lto_promote_cross_file_statics (void)
struct cgraph_node *node = csi_node (csi);
if (node->local.externally_visible)
continue;
- if (node->clone_of || node->global.inlined_to)
+ if (node->global.inlined_to)
continue;
if (!DECL_EXTERNAL (node->decl)
&& (referenced_from_other_partition_p (&node->ref_list, set, vset)