]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix a darwin10 build problem.
authorRichard Henderson <rth@redhat.com>
Tue, 8 Nov 2011 23:36:33 +0000 (15:36 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 8 Nov 2011 23:36:33 +0000 (15:36 -0800)
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

libitm/ChangeLog
libitm/local.cc

index c8c42795e011e132a157e4d0a799a6a493700e7d..fe1d7d0fb4872c8ab9524ea0eb0b7505a834b2f3 100644 (file)
@@ -1,3 +1,7 @@
+2011-11-08  Richard Henderson  <rth@redhat.com>
+
+       * local.cc (_ITM_LB): Use a normal call, not a function alias.
+
 2011-11-08  Richard Henderson  <rth@redhat.com>
 
        * configure.tgt: Test correct directory for supported cpus.
index fab73c508956a899a581f2b1c1664a5a3e497782..4f47ff2e5f6c7525d15cedded020868d2a714c34 100644 (file)
@@ -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) \