This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH][WIP] libstdc++: Make certain exceptions transaction_safe.
- From: Jason Merrill <jason at redhat dot com>
- To: Torvald Riegel <triegel at redhat dot com>, Jonathan Wakely <jwakely at redhat dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 23 Dec 2015 15:56:07 -0500
- Subject: Re: [PATCH][WIP] libstdc++: Make certain exceptions transaction_safe.
- Authentication-results: sourceware.org; auth=none
- References: <1447530329 dot 30181 dot 50 dot camel at localhost dot localdomain> <20151216210558 dot GS5356 at redhat dot com> <1450892140 dot 26597 dot 153 dot camel at localhost dot localdomain>
On 12/23/2015 12:35 PM, Torvald Riegel wrote:
+//#if !defined (HAVE_ELF_STYLE_WEAKREF)
Can I assume weak refs to be supported, or how do I check for whether
they are? What's your preference?
G++ does support targets without weak symbols, but I imagine we can
decide not to support libitm on such targets.
+ // FIXME make a true compile-time choice to prevent warnings.
+ if (sizeof(uint64_t)== sizeof(void*))
+ return (void*)_ITM_RU8((const uint64_t*)ptr);
+ else
+ return (void*)_ITM_RU4((const uint32_t*)ptr);
#include <stdint.h> and compare UINTPTR_MAX to UINT64_MAX?
Jason