aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/lto/lto-partition.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/lto/lto-partition.cc b/gcc/lto/lto-partition.cc
index 654d67f..b96d1dd 100644
--- a/gcc/lto/lto-partition.cc
+++ b/gcc/lto/lto-partition.cc
@@ -1035,15 +1035,18 @@ promote_symbol (symtab_node *node)
/* Return true if NODE needs named section even if it won't land in
the partition symbol table.
- FIXME: we should really not use named sections for inline clones
- and master clones. */
+ FIXME: we should really not use named sections for master clones. */
static bool
may_need_named_section_p (lto_symtab_encoder_t encoder, symtab_node *node)
{
struct cgraph_node *cnode = dyn_cast <cgraph_node *> (node);
+ /* We do not need to handle variables since we never clone them. */
if (!cnode)
return false;
+ /* Only master clones will have bodies streamed. */
+ if (cnode->clone_of)
+ return false;
if (node->real_symbol_p ())
return false;
return (!encoder