diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-01-06 14:04:05 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-01-06 14:04:05 +0000 |
commit | 24d3f3251c2c35c086e6614da281c8c4524afa27 (patch) | |
tree | 7c01669af50403b267f72c3cf76d7b8d5f04a8e1 /gcc/lto/lto-partition.c | |
parent | eb0f878074743d4bcb63e32948ab7c1748c1efb8 (diff) | |
download | gcc-24d3f3251c2c35c086e6614da281c8c4524afa27.zip gcc-24d3f3251c2c35c086e6614da281c8c4524afa27.tar.gz gcc-24d3f3251c2c35c086e6614da281c8c4524afa27.tar.bz2 |
ipa-visibility.c (function_and_variable_visibility): Reformat comments and long lines.
gcc/
* ipa-visibility.c (function_and_variable_visibility): Reformat
comments and long lines. Remove extrneous if.
* symtab.c (symtab_node::make_decl_local): Fix code format.
(symtab_node::set_section_for_node): Fix comment typo.
gcc/lto/
* lto-partition.c (lto_balanced_map): Reformat/respell comment.
(may_need_named_section_p): Likewise.
(rename_statics): Likewise.
(lto_promote_cross_file_statics): Likewise.
From-SVN: r244156
Diffstat (limited to 'gcc/lto/lto-partition.c')
-rw-r--r-- | gcc/lto/lto-partition.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/gcc/lto/lto-partition.c b/gcc/lto/lto-partition.c index 8cd17e6f..a0c0a2f 100644 --- a/gcc/lto/lto-partition.c +++ b/gcc/lto/lto-partition.c @@ -668,8 +668,9 @@ lto_balanced_map (int n_lto_partitions, int max_partition_size) vnode = dyn_cast <varpool_node *> (ref->referring); gcc_assert (vnode->definition); - /* It is better to couple variables with their users, because it allows them - to be removed. Coupling with objects they refer to only helps to reduce + /* It is better to couple variables with their users, + because it allows them to be removed. Coupling + with objects they refer to only helps to reduce number of symbols promoted to hidden. */ if (!symbol_partitioned_p (vnode) && flag_toplevel_reorder && !vnode->no_reorder @@ -1008,10 +1009,11 @@ promote_symbol (symtab_node *node) "Promoting as hidden: %s\n", node->name ()); } -/* 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. */ +/* 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. */ static bool may_need_named_section_p (lto_symtab_encoder_t encoder, symtab_node *node) @@ -1089,7 +1091,8 @@ rename_statics (lto_symtab_encoder_t encoder, symtab_node *node) || lto_symtab_encoder_lookup (encoder, s) != LCC_NOT_FOUND)) { if (privatize_symbol_name (s)) - /* Re-start from beginning since we do not know how many symbols changed a name. */ + /* Re-start from beginning since we do not know how many + symbols changed a name. */ s = symtab_node::get_for_asmname (name); else s = s->next_sharing_asm_name; } @@ -1130,8 +1133,8 @@ lto_promote_cross_file_statics (void) { symtab_node *node = lsei_node (lsei); - /* If symbol is static, rename it if its assembler name clash with - anything else in this unit. */ + /* If symbol is static, rename it if its assembler name + clashes with anything else in this unit. */ rename_statics (encoder, node); /* No need to promote if symbol already is externally visible ... */ @@ -1139,7 +1142,7 @@ lto_promote_cross_file_statics (void) /* ... or if it is part of current partition ... */ || lto_symtab_encoder_in_partition_p (encoder, node) /* ... or if we do not partition it. This mean that it will - appear in every partition refernecing it. */ + appear in every partition referencing it. */ || node->get_partitioning_class () != SYMBOL_PARTITION) { validize_symbol_for_target (node); |