On Sat, 11 Feb 2012, Richard Henderson wrote: > On 02/04/2012 02:06 AM, Richard Sandiford wrote: > >> > Actually I had that idea of a link-once function too, but it turned out > >> > quite complicated to do without rewriting some generic parts of GCC as > >> > it > >> > is currently not prepared to emit link-once functions outside C++ > >> > compilations. It's been a while and I did lots of other stuff > >> > meanwhile, > >> > so please excuse me if I got anything wrong here. > > Hmm, OK, I wouldn't have expected that. But if you've tried making > > __mips16_rdhwr link-once and had a bad experience with it, then yeah, > > let's go with the hidden libgcc function. It's just a shame that we're > > having to force static linking of libgcc for this one case. > > The i386 target does it all the time for its __x86.get_pc_thunk.?x thingys. > So I really don't believe the "not prepared" comment.
I'm confused then, sorry -- Chung-Lin, can you look into it again then please? Maciej