diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2014-05-20 21:57:45 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-05-20 19:57:45 +0000 |
commit | cf288ed3b8b0cdfee1c03a7dfb2d371b5b7e3147 (patch) | |
tree | c7cb5df0ad4b66323aabee83001d4e28934f6229 /gcc/config/mep | |
parent | f4cd9c518ba414724bacb1d936ba1676929fa52e (diff) | |
download | gcc-cf288ed3b8b0cdfee1c03a7dfb2d371b5b7e3147.zip gcc-cf288ed3b8b0cdfee1c03a7dfb2d371b5b7e3147.tar.gz gcc-cf288ed3b8b0cdfee1c03a7dfb2d371b5b7e3147.tar.bz2 |
tree.h (DECL_ONE_ONLY): Return true only for externally visible symbols.
* tree.h (DECL_ONE_ONLY): Return true only for externally visible
symbols.
* except.c (switch_to_exception_section, resolve_unique_section,
get_named_text_section, default_function_rodata_section,
align_variable, get_block_for_decl, default_section_type_flags):
Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
* symtab.c (symtab_add_to_same_comdat_group,
symtab_make_decl_local, fixup_same_cpp_alias_visibility,
symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
Likewise.
* cgraphclones.c (cgraph_create_virtual_clone): Likewise.
* bb-reorder.c (pass_partition_blocks::gate): Likewise.
* config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
(c6x_function_in_section_p): Likewise.
* config/darwin.c (machopic_select_section): Likewise.
* config/arm/arm.c (arm_function_in_section_p): Likewise.
* config/mips/mips.c (mips_function_rodata_section): Likewise.
* config/mep/mep.c (mep_select_section): LIkewise.
* config/i386/i386.c (x86_64_elf_unique_section): Likewise.
From-SVN: r210654
Diffstat (limited to 'gcc/config/mep')
-rw-r--r-- | gcc/config/mep/mep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c index c780b5a..107f1fa 100644 --- a/gcc/config/mep/mep.c +++ b/gcc/config/mep/mep.c @@ -4532,7 +4532,7 @@ mep_select_section (tree decl, int reloc ATTRIBUTE_UNUSED, else encoding = 0; - if (flag_function_sections || DECL_ONE_ONLY (decl)) + if (flag_function_sections || DECL_COMDAT_GROUP (decl)) mep_unique_section (decl, 0); else if (lookup_attribute ("vliw", TYPE_ATTRIBUTES (TREE_TYPE (decl)))) { @@ -4651,7 +4651,7 @@ mep_unique_section (tree decl, int reloc) name += 3; } - prefix = prefixes[sec][DECL_ONE_ONLY(decl)]; + prefix = prefixes[sec][DECL_COMDAT_GROUP(decl) != NULL]; len = strlen (name) + strlen (prefix); string = (char *) alloca (len + 1); |