[Bug target/40483] gcc 4.x needs to utilize better COMDAT mechanism under Solaris

2011-07-18 Thread ro at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40483

Rainer Orth ro at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #6 from Rainer Orth ro at gcc dot gnu.org 2011-07-18 16:27:06 UTC 
---
Fixed for 4.7.0.


[Bug target/40483] gcc 4.x needs to utilize better COMDAT mechanism under Solaris

2011-05-19 Thread ro at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40483

--- Comment #4 from Rainer Orth ro at gcc dot gnu.org 2011-05-19 14:29:11 UTC 
---
Author: ro
Date: Thu May 19 14:29:05 2011
New Revision: 173913

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=173913
Log:
PR target/40483
* configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
COMDAT group syntax, both SPARC and x86 variants.
(HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
* configure: Regenerate.
* config/sol2.h (TARGET_SOLARIS): Define.
(PUSHSECTION_FORMAT): Remove.
(SECTION_NAME_FORMAT): Define.
* config/sol2.c: Include hashtab.h.
(solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
expansion, using SECTION_NAME_FORMAT.
(solaris_comdat_htab): New variable.
(struct comdat_entry): Define.
(comdat_hash): New function.
(comdat_eq): New function.
(solaris_elf_asm_comdat_section): New function.
(solaris_define_comdat_signature): New function.
(solaris_code_end): New function.
* config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
(solaris_code_end): Declare.
* config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
* config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
solaris_code_end.
(i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
Remove ATTRIBUTE_UNUSED.
[!USE_GAS]: Call solaris_elf_asm_comdat_section for
SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
* config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
Likewise.
* config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
* config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
* config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
(PUSHSECTION_FORMAT): Remove.
(SECTION_NAME_FORMAT): Redefine.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/config/i386/sol2-10.h
trunk/gcc/config/i386/sol2.h
trunk/gcc/config/sol2-protos.h
trunk/gcc/config/sol2.c
trunk/gcc/config/sol2.h
trunk/gcc/config/sparc/sol2.h
trunk/gcc/config/sparc/sparc.c
trunk/gcc/configure
trunk/gcc/configure.ac


[Bug target/40483] gcc 4.x needs to utilize better COMDAT mechanism under Solaris

2011-05-19 Thread ro at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40483

Rainer Orth ro at gcc dot gnu.org changed:

   What|Removed |Added

URL|http://gcc.gnu.org/ml/gcc-p |http://gcc.gnu.org/ml/gcc-p
   |atches/2010-06/msg00600.htm |atches/2011-05/msg01384.htm
   |l   |l
   Target Milestone|--- |4.7.0

--- Comment #5 from Rainer Orth ro at gcc dot gnu.org 2011-05-19 15:10:26 UTC 
---
Fixed for 4.7.0.


[Bug target/40483] gcc 4.x needs to utilize better COMDAT mechanism under Solaris

2010-06-07 Thread ro at gcc dot gnu dot org


--- Comment #3 from ro at gcc dot gnu dot org  2010-06-07 18:50 ---
Revised patch available.


-- 

ro at gcc dot gnu dot org changed:

   What|Removed |Added

URL|http://gcc.gnu.org/ml/gcc-  |http://gcc.gnu.org/ml/gcc-
   |patches/2010-   |patches/2010-
   |05/msg01365.html|06/msg00600.html


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40483



[Bug target/40483] gcc 4.x needs to utilize better COMDAT mechanism under Solaris

2010-05-20 Thread ro at gcc dot gnu dot org


--- Comment #2 from ro at gcc dot gnu dot org  2010-05-20 17:15 ---
Initial patch posted for COMDAT group with Sun as.  Will require an updated
configure test to work on SPARC, though.


-- 

ro at gcc dot gnu dot org changed:

   What|Removed |Added

URL||http://gcc.gnu.org/ml/gcc-
   ||patches/2010-
   ||05/msg01365.html
   Keywords||patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40483



[Bug target/40483] gcc 4.x needs to utilize better COMDAT mechanism under Solaris

2010-04-28 Thread ro at gcc dot gnu dot org


--- Comment #1 from ro at gcc dot gnu dot org  2010-04-28 19:15 ---
One part of this PR (supporting COMDAT group on Solaris 2 with GNU as) is
implemented by this patch:

  [build, doc] Support COMDAT group with recent Sun ld
  http://gcc.gnu.org/ml/gcc-patches/2010-03/msg01482.html

which went into 4.5.0.  It requires snv_130, though, a recent OpenSolaris
build.
Unless paying customers require a backport from Oracle, this won't get into
earlier releases,though.

On the other hand, supporting COMDAT group with Sun as is still in the works.
I've made some progress with help from the Sun assembler and linker
maintainers,,
but still hit some issues in both as and ld.  I expect to have this ready for
4.6.0, but am undecided about a backport to the 4.5 branch yet.


-- 

ro at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |ro at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
 GCC target triplet|i386-solaris|*-*-solaris2*
   Last reconfirmed|-00-00 00:00:00 |2010-04-28 19:15:45
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40483



[Bug target/40483] gcc 4.x needs to utilize better COMDAT mechanism under Solaris

2009-06-18 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Severity|normal  |enhancement
  Component|regression  |target
 GCC target triplet||i386-solaris
Summary|gcc 4.x needs to utilize|gcc 4.x needs to utilize
   |better COMDAT mechanism |better COMDAT mechanism
   |under Solaris   |under Solaris


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40483