aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-05-16 11:55:14 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2016-05-16 09:55:14 +0000
commit479f99c9679096f14f8d9d8bbb0ada049dbdead1 (patch)
treedfb0d85d01678d543b8759d656132ba16c20d587 /gcc/lto
parent1b81a1c1bd5355d8b5405825b4478078e76fd906 (diff)
downloadgcc-479f99c9679096f14f8d9d8bbb0ada049dbdead1.zip
gcc-479f99c9679096f14f8d9d8bbb0ada049dbdead1.tar.gz
gcc-479f99c9679096f14f8d9d8bbb0ada049dbdead1.tar.bz2
lto-cgraph.c (compute_ltrans_boundary, [...]): Fix handling of inline thunks
* lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling of inline thunks * lto-partition.c (add_symbol_to_partition_1): Likewise. From-SVN: r236270
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto-partition.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 80ffba3..06458d4 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,7 @@
+2016-05-16 Jan Hubicka <hubicka@ucw.cz>
+
+ * lto-partition.c (add_symbol_to_partition_1): Likewise.
+
2016-05-03 Jan Hubicka <hubicka@ucw.cz>
* lto-symtab.c (lto_cgraph_replace_node): Initialize inline_failed.
diff --git a/gcc/lto/lto-partition.c b/gcc/lto/lto-partition.c
index c191d24..453343a 100644
--- a/gcc/lto/lto-partition.c
+++ b/gcc/lto/lto-partition.c
@@ -163,7 +163,7 @@ add_symbol_to_partition_1 (ltrans_partition part, symtab_node *node)
/* Add all thunks associated with the function. */
for (e = cnode->callers; e; e = e->next_caller)
- if (e->caller->thunk.thunk_p)
+ if (e->caller->thunk.thunk_p && !e->caller->global.inlined_to)
add_symbol_to_partition_1 (part, e->caller);
/* Instrumented version is actually the same function.