This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: PATCH for thread-safe C++ static local initialization
- From: Richard Henderson <rth at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Benjamin Kosnik <bkoz at redhat dot com>
- Date: Sun, 22 Aug 2004 12:09:08 -0700
- Subject: Re: RFC: PATCH for thread-safe C++ static local initialization
- References: <xyp3c2hr2zw.fsf@miranda.boston.redhat.com>
On Fri, Aug 20, 2004 at 04:03:31PM -0400, Jason Merrill wrote:
> ! TARGET_EXPR_CLEANUP (begin)
> ! = build (COND_EXPR, void_type_node, flag,
> ! void_zero_node,
> ! build_call (abort_fn, guard_addr_list));
Hmm. tree.h documents CLEANUP_EH_ONLY for TARGET_EXPR, but
we don't actually implement this in gimplify.c. Which seems
entirely appropriate here.
Indeed, assuming __cxa_guard_release is nothrow, you don't
need the flag variable at all.
r~