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 | |
parent | 04270aa4571a1b30a79f4ccf678ccd0d129ac765 (diff) | |
download | gcc-d86527722569f8443a905c475d7f7eb7ec6dc711.zip gcc-d86527722569f8443a905c475d7f7eb7ec6dc711.tar.gz gcc-d86527722569f8443a905c475d7f7eb7ec6dc711.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/elfos.h | 10 |
2 files changed, 15 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 498db07..eebeac4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-02-25 Julian Brown <julian@codesourcery.com> + + * 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. + 2005-02-25 Mark Mitchell <mark@codesourcery.com> * doc/include/gcc-common.texi (version-GCC): Update to 4.1. diff --git a/gcc/config/elfos.h b/gcc/config/elfos.h index 9eed0d1..6e41bb2 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 |