[PATCH][Solaris] Default to -fno-cxa-finalize

Xan López via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 8 04:27:42 PDT 2015


On Tue, Sep 08, 2015 at 01:09:02PM +0200, Joerg Sonnenberger via cfe-commits wrote:
> On Fri, Aug 28, 2015 at 07:52:17PM +0200, Xan López via cfe-commits wrote:
> > There is no __cxa_finalize symbol available on recent Solaris OS
> > versions, so we need this flag to make non trivial C++ programs run.
> 
> What do you consider as recent Solaris? When I asked, I've been told
> that Illumos has been providing __cxa_atexit since 2013. As such,
> disabling it for the Solaris family by default seems just wrong.

Solaris 11.2, which is the latest non-beta version available.

I found some patches for OpenSolaris from 2013 creating dummy versions
of cxa_finalize.o, but did not seem like that could possibly work. In
any case clang for Solaris has never really worked upstream, the code
before my recent patches was completely hardcoded for a Solaris/x86
version from 2012 with a very specific GCC version, it could not work
anywhere else. So I'm not sure that anyone at Illumos could have been
using upstream, maybe they have their own branch.

Where can I see the __cxa_atexit support in Illumos? If that works and
we can tell Solaris and Illumous apart maybe we can just disable this
for actual Solaris, but I won't be able to test that myself.

Xan

> 
> Joerg
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


More information about the cfe-commits mailing list