[Bug libitm/55693] [4.8 Regression] libitm.c++/eh-1.C execution test fails on darwin from r193271

aldyh at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 23 04:34:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55693

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |patrick.marlier at gmail
                   |                            |dot com

--- Comment #20 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2013-01-23 04:34:26 UTC ---
crttme.o comes from libgcc/config/darwin-crt-tm.c, which has:

/* Provide dummy functions to satisfy linkage for versions of the Darwin 
   tool-chain that that can't handle undefined weak refs at the link stage.
   ??? Define these dummy functions only when !HAVE_ELF_STYLE_WEAKREF. */

extern void *__cxa_allocate_exception (size_t) WEAK;
...
...
void *__cxa_allocate_exception (size_t s UNUSED) { return NULL; }

This looks like the NULL returning __cxa_allocate_exception that is causing all
this grief, and came from Patrick Marlier and Iain Sandoe's patch here:

http://gcc.gnu.org/ml/gcc-patches/2012-02/msg00851.html

Again, I'm a Darwin wimp.  Anyone care to comment?



More information about the Gcc-bugs mailing list