diff options
author | Richard Sandiford <richard@codesourcery.com> | 2006-06-21 12:59:34 +0000 |
---|---|---|
committer | Richard Sandiford <richard@codesourcery.com> | 2006-06-21 12:59:34 +0000 |
commit | 174bae98db2593b2c6195381050a040d12e6fd70 (patch) | |
tree | 0727ba398f6eccf66a63cdc7c9a41cf4521dfb2a /gcc/varasm.c | |
parent | 6c183ae5df5081e11b3bcd0313fb2df84ae2c7a0 (diff) |
Merge from csl/coldfire-4_1 branch, revision 114848
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/csl/sourcerygxx-4_1@114850 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index dc0a469260d..c15576289b8 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -613,7 +613,7 @@ default_function_rodata_section (tree decl) { const char *name = TREE_STRING_POINTER (DECL_SECTION_NAME (decl)); - if (DECL_ONE_ONLY (decl) && HAVE_COMDAT_GROUP) + if (DECL_ONE_ONLY (decl) && targetm.use_comdat_groups) { size_t len = strlen (name) + 3; char* rname = alloca (len); @@ -5142,7 +5142,7 @@ default_elf_asm_named_section (const char *name, unsigned int flags, abbreviated form to switch back to it -- unless this section is part of a COMDAT groups, in which case GAS requires the full declaration every time. */ - if (!(HAVE_COMDAT_GROUP && (flags & SECTION_LINKONCE)) + if (!(targetm.use_comdat_groups && (flags & SECTION_LINKONCE)) && ! named_section_first_declaration (name)) { fprintf (asm_out_file, "\t.section\t%s\n", name); @@ -5163,7 +5163,7 @@ default_elf_asm_named_section (const char *name, unsigned int flags, *f++ = 'S'; if (flags & SECTION_TLS) *f++ = 'T'; - if (HAVE_COMDAT_GROUP && (flags & SECTION_LINKONCE)) + if (targetm.use_comdat_groups && (flags & SECTION_LINKONCE)) *f++ = 'G'; *f = '\0'; @@ -5190,7 +5190,7 @@ default_elf_asm_named_section (const char *name, unsigned int flags, if (flags & SECTION_ENTSIZE) fprintf (asm_out_file, ",%d", flags & SECTION_ENTSIZE); - if (HAVE_COMDAT_GROUP && (flags & SECTION_LINKONCE)) + if (targetm.use_comdat_groups && (flags & SECTION_LINKONCE)) fprintf (asm_out_file, ",%s,comdat", lang_hooks.decls.comdat_group (decl)); } @@ -5463,7 +5463,7 @@ void default_unique_section_1 (tree decl, int reloc, int shlib) { /* We only need to use .gnu.linkonce if we don't have COMDAT groups. */ - bool one_only = DECL_ONE_ONLY (decl) && !HAVE_COMDAT_GROUP; + bool one_only = DECL_ONE_ONLY (decl) && !targetm.use_comdat_groups; const char *prefix, *name; size_t nlen, plen; char *string; |