This is the mail archive of the gcc-patches@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]

Re: [Committed] Fix C++ deconstructors for spu-elf


On Sun, 2006-12-03 at 19:38 -0800, Mark Mitchell wrote:
> Andrew_Pinski@PlayStation.Sony.Com wrote:
> 
> >         * config/spu/crt0.c (__dso_handle): Define.
> 
> Isn't it possible to have the linker script define the symbol for you?

We could but that is not what is done for the rest of the targets.

> If so, that seems better as it allows for the (admittedly unlikely)
> possibility that SPU would ever have shared objects.  And, IIRC, it's
> more like what we do elsewhere.

No, other targets use crtstuff.c which defines __dso_handle for crt0.o
and the shared version of crt0.

The SPU target does not use currently crtstuff.c in the gcc directory.
This is going to change, Ben Elliston has already sent a patch (which I
approved) which corrects this.  Also I doubt there will ever be shared
objects for SPU unless a something magically comes along in terms of
memory size.

Thanks,
Andrew Pinski


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