This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/83838] Many gcc.target/i386/indirect-thunk*.c tests FAIL
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Jan 2018 23:28:02 +0000
- Subject: [Bug target/83838] Many gcc.target/i386/indirect-thunk*.c tests FAIL
- Auto-submitted: auto-generated
- References: <bug-83838-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83838
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #4)
> > --- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
> > There are
> >
> > /* Only recent versions of Solaris 11 ld properly support hidden .gnu.linkonce
> > sections, so don't use them. */
> > #ifndef USE_GLD
> > #define USE_HIDDEN_LINKONCE 0
> > #endif
>
> If I can figure out when full support for .gnu.linkonce started in
> Solaris ld, I can make this dynamic in configure.ac ...
>
> > But GCC generates comdat:
> >
> > .section
> > .text.__x86_indirect_thunk,"axG",@progbits,__x86_indirec
> > t_thunk,comdat
> > .globl __x86_indirect_thunk
> > .hidden __x86_indirect_thunk
> > .type __x86_indirect_thunk, @function
> >
> > Does Solaris ld support comdat?
>
> ... like this one: complete Solaris ld support for comdat started
> sometime in the Solaris 11 timeframe, cf. configure.ac (comdat_group).
> Solaris 10 did not (at least not in a way that could cope with
> everything gcc might generate).
>
G++ uses comdat extensively. Without comdat, g++ generates very
odd codes. Please double check if libstdc++ object files on Solaris
have any comdat sections.