diff options
author | Julian Brown <julian@codesourcery.com> | 2005-02-25 22:32:56 +0000 |
---|---|---|
committer | Julian Brown <jules@gcc.gnu.org> | 2005-02-25 22:32:56 +0000 |
commit | d86527722569f8443a905c475d7f7eb7ec6dc711 (patch) | |
tree | 6c869b0a11894639cba7ced5b53b9c0019b6f941 /gcc/config/elfos.h | |
parent | 04270aa4571a1b30a79f4ccf678ccd0d129ac765 (diff) | |
download | gcc-d86527722569f8443a905c475d7f7eb7ec6dc711.tar.gz |
elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from being used for symbols with vague linkage when...
* gcc/config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
from being used for symbols with vague linkage when
HAVE_GAS_COMDAT_GROUP is true.
From-SVN: r95553
Diffstat (limited to 'gcc/config/elfos.h')
-rw-r--r-- | gcc/config/elfos.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index 9eed0d13fe3..6e41bb26936 100644 --- a/gcc/config/elfos.h +++ b/gcc/config/elfos.h @@ -212,7 +212,15 @@ Boston, MA 02111-1307, USA. */ fprintf ((FILE), "%s\n", ASM_SECTION_START_OP) #endif -#define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1) +/* Don't use weak for entities with vague linkage when HAVE_GAS_COMDAT_GROUP + is true. */ +#define MAKE_DECL_ONE_ONLY(DECL) \ + do \ + { \ + if (!HAVE_GAS_COMDAT_GROUP) \ + DECL_WEAK(DECL) = 1; \ + } \ + while (0) /* Switch into a generic section. */ #define TARGET_ASM_NAMED_SECTION default_elf_asm_named_section |