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]

Re: RFC: PATCH for thread-safe C++ static local initialization


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~


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