summaryrefslogtreecommitdiff
path: root/libitm/eh_cpp.cc
diff options
context:
space:
mode:
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-22 14:49:11 +0000
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-22 14:49:11 +0000
commit07acf71267309fd593fafe0d25ed5a805aee0977 (patch)
tree2c26188cd406f39ca321e6a5612b5d17b6376b1e /libitm/eh_cpp.cc
parente3eb42090469340ec4e2c93cfb0347d35230d62d (diff)
downloadgcc-07acf71267309fd593fafe0d25ed5a805aee0977.tar.gz
config:
* weakref.m4: New file. libitm: * configure.ac: Use GCC_CHECK_ELF_STYLE_WEAKREF. * alloc_cpp.cc: Generate dummy functions if we don't HAVE_ELF_STYLE_WEAKREF. * eh_cpp.cc: Likewise. * configure: Regenerate. * aclocal.m4: Likewise. * config.h.in: Likewise. * Makefile.in: Likewise. * testsuite/Makefile.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181618 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libitm/eh_cpp.cc')
-rw-r--r--libitm/eh_cpp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libitm/eh_cpp.cc b/libitm/eh_cpp.cc
index 7a378622772..6f302cdc4ae 100644
--- a/libitm/eh_cpp.cc
+++ b/libitm/eh_cpp.cc
@@ -39,13 +39,13 @@ extern void *__cxa_begin_catch (void *) WEAK;
extern void *__cxa_end_catch (void) WEAK;
extern void __cxa_tm_cleanup (void *, void *, unsigned int) WEAK;
-#ifdef __osf__ /* Really: !HAVE_WEAKDEF */
+#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
+#endif /* HAVE_ELF_STYLE_WEAKREF */
}