OSDN Git Service

* gcc/config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
authorjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Feb 2005 22:32:56 +0000 (22:32 +0000)
committerjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Feb 2005 22:32:56 +0000 (22:32 +0000)
from being used for symbols with vague linkage when
HAVE_GAS_COMDAT_GROUP is true.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95553 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/elfos.h

index 498db07..eebeac4 100644 (file)
@@ -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.
index 9eed0d1..6e41bb2 100644 (file)
@@ -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