OSDN Git Service

libitm: Fix privatization safety during upgrades to serial mode.
[pf3gnuchains/gcc-fork.git] / libitm / eh_cpp.cc
index 7cba97c..6f302cd 100644 (file)
@@ -39,6 +39,14 @@ extern void *__cxa_begin_catch (void *) WEAK;
 extern void *__cxa_end_catch (void) WEAK;
 extern void __cxa_tm_cleanup (void *, void *, unsigned int) WEAK;
 
+#if !defined (HAVE_ELF_STYLE_WEAKREF)
+void *__cxa_allocate_exception (size_t) { return NULL; }
+void __cxa_throw (void *, void *, void *) { return; }
+void *__cxa_begin_catch (void *) { return NULL; }
+void *__cxa_end_catch (void) { return NULL; }
+void __cxa_tm_cleanup (void *, void *, unsigned int) { return; }
+#endif /* HAVE_ELF_STYLE_WEAKREF */
+
 }