aboutsummaryrefslogtreecommitdiff
path: root/libitm/local.cc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-11-08 15:36:33 -0800
committerRichard Henderson <rth@gcc.gnu.org>2011-11-08 15:36:33 -0800
commit4408b0865b29a502144810a61296e7711e042aa5 (patch)
treed0891a591984503d7c411f9058f22a5a94d46653 /libitm/local.cc
parentb8bc0ff76b12959e1aefafda407c03604605728c (diff)
downloadgcc-4408b0865b29a502144810a61296e7711e042aa5.zip
gcc-4408b0865b29a502144810a61296e7711e042aa5.tar.gz
gcc-4408b0865b29a502144810a61296e7711e042aa5.tar.bz2
Fix a darwin10 build problem.
local.cc:113:6: error: only weak aliases are supported in this configuration * local.cc (_ITM_LB): Use a normal call, not a function alias. From-SVN: r181182
Diffstat (limited to 'libitm/local.cc')
-rw-r--r--libitm/local.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/libitm/local.cc b/libitm/local.cc
index fab73c5..4f47ff2 100644
--- a/libitm/local.cc
+++ b/libitm/local.cc
@@ -110,8 +110,14 @@ GTM_LB (const void *ptr, size_t len)
using namespace GTM;
-void _ITM_LB (const void *ptr, size_t len) ITM_REGPARM
- __attribute__((alias("GTM_LB")));
+/* ??? Use configure to determine if aliases are supported. Or convince
+ the compiler to not just tail call this, but actually generate the
+ same_body_alias itself. */
+void ITM_REGPARM
+_ITM_LB (const void *ptr, size_t len)
+{
+ GTM_LB (ptr, len);
+}
#define ITM_LOG_DEF(T) \
void ITM_REGPARM _ITM_L##T (const _ITM_TYPE_##T *ptr) \