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]

[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





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