diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-08 23:36:33 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-08 23:36:33 +0000 |
commit | 275b7639575b135090489a1087a0ac1c36e8d228 (patch) | |
tree | d0891a591984503d7c411f9058f22a5a94d46653 | |
parent | b9dbfade6c60267bccdfb07c71844e179fbca0fa (diff) | |
download | gcc-275b7639575b135090489a1087a0ac1c36e8d228.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181182 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libitm/ChangeLog | 4 | ||||
-rw-r--r-- | libitm/local.cc | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/libitm/ChangeLog b/libitm/ChangeLog index c8c42795e01..fe1d7d0fb48 100644 --- a/libitm/ChangeLog +++ b/libitm/ChangeLog @@ -1,5 +1,9 @@ 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. * configure.ac: Exit if unsupported. diff --git a/libitm/local.cc b/libitm/local.cc index fab73c50895..4f47ff2e5f6 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) \ |