This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/83838] Many gcc.target/i386/indirect-thunk*.c tests FAIL


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]