This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch RFA libitm] config-based assessment of weakref capability
- From: Iain Sandoe <developer at sandoe-acoustics dot co dot uk>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Richard Henderson <rth at redhat dot com>, Mike Stump <mrs at gcc dot gnu dot org>, Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Date: Fri, 18 Nov 2011 13:44:40 +0000
- Subject: [Patch RFA libitm] config-based assessment of weakref capability
Hi,
one of the three remaining libitm issues for Darwin is to supply the
dummy funcs fro the weakrefs (as Rainer has done for Tru64) for the
versions of Darwin that need them.
Since we now have the situation where there are several targets which
might need dummy functions for the weak declarations, it seemed worth
trying to auto-foo this.
.. the attached works for me on Darwin9 (weakref doesn't work like
elf***) and Darwin10+XCode3.2.5 (weakref works like elf)
I hope it also works for Rainer .... and that I've got the right
designator for the Tru64 cross-case.
comments/OK for trunk?
Iain
*** FWIW, weakref actually work (at runtime) for earlier Darwin
- it's just that refs either need to be satisfied by dummies at link
time -
- or the library namespace has to be flattened (which is generally
undesirable).
-----
libitm:
* acinclude.m4 (LIBITM_CHECK_WORKING_WEAKREF): New.
* configure.ac: Use LIBITM_CHECK_WORKING_WEAKREF.
* alloc_cpp.cc: Generate dummy functions if we don't
HAVE_WORKING_WEAKREF.
* eh_cpp.cc: Likewise.
* configure: Regenerate.
* aclocal.m4: Likewise.
* config.h.in: Likewise.
Attachment:
181473-libitm-config-weakref.txt
Description: Text document