This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Enable comdat group
- From: "Eric Botcazou" <ebotcazou at libertysurf dot fr>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 17 Aug 2004 17:33:47 +0200
- Subject: Re: PATCH: Enable comdat group
- References: <20040817144425.GA8528@lucon.org>
[It would be nice to post the ChangeLog entry in the body of the message.]
* config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Define only
if HAVE_GAS_COMDAT_GROUP is not defined.
--- gcc/config/sparc/sysv4.h.comdat 2003-06-17 17:03:32.000000000 -0700
+++ gcc/config/sparc/sysv4.h 2004-08-12 08:33:58.264912083 -0700
@@ -150,9 +150,13 @@ do { ASM_OUTPUT_ALIGN ((FILE), Pmode ==
#undef DTORS_SECTION_ASM_OP
#define DTORS_SECTION_ASM_OP "\t.section\t\".dtors\",#alloc,#write"
+/* COMDAT group cannot be expressed in SPARC's section attributes
+ encoding style. */
+#ifndef HAVE_GAS_COMDAT_GROUP
/* Switch into a generic section. */
#undef TARGET_ASM_NAMED_SECTION
#define TARGET_ASM_NAMED_SECTION sparc_elf_asm_named_section
+#endif
"... in Solaris assembler.section syntax" instead of "... in SPARC...".
I presume this means that GCC will automatically use the SVR4 .section
syntax on Solaris/SPARC when configured --with-gnu-as with binutils
mainline?
--
Eric Botcazou