diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-20 19:57:45 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-05-20 19:57:45 +0000 |
commit | b395f451e4885860674410cda8c8fb2d5fa51d20 (patch) | |
tree | c7cb5df0ad4b66323aabee83001d4e28934f6229 /gcc/config/darwin.c | |
parent | 089c9c49805ca3c1d1691f47f26f2a3758a01a88 (diff) | |
download | gcc-b395f451e4885860674410cda8c8fb2d5fa51d20.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210654 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r-- | gcc/config/darwin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 462c81d0a08..cec341dfe35 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1521,7 +1521,7 @@ machopic_select_section (tree decl, one = DECL_P (decl) && TREE_CODE (decl) == VAR_DECL - && DECL_ONE_ONLY (decl); + && DECL_COMDAT_GROUP (decl); ro = TREE_READONLY (decl) || TREE_CONSTANT (decl) ; |