diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-07 18:09:34 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-07 18:09:34 +0000 |
commit | a91625a65c33f4c6d6fb6f7121c33ec5e4e86012 (patch) | |
tree | 746435996c27c2a979ed8e5cc74b20e06ea204cd /libgcc/libgcov-interface.c | |
parent | dce46b2f70b78d6a418e5e258b20fddd867bd28f (diff) |
* libgcov-interface.c (STRONG_ALIAS): Rename to ...
(ALIAS_weak): ... here. Use forwarding function. Adjust uses.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215005 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/libgcov-interface.c')
-rw-r--r-- | libgcc/libgcov-interface.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libgcc/libgcov-interface.c b/libgcc/libgcov-interface.c index 76d3f9731d7f..e40268991af5 100644 --- a/libgcc/libgcov-interface.c +++ b/libgcc/libgcov-interface.c @@ -42,11 +42,14 @@ void __gcov_dump (void) {} #else - /* Some functions we want to bind in this dynamic object, but have an - overridable global alias. */ -#define STRONG_ALIAS(src,dst) \ - extern __typeof (src) dst __attribute__((alias (#src))) + overridable global alias. Unfortunately not all targets support + aliases, so we just have a forwarding function. That'll be tail + called, so the cost is a single jump instruction.*/ + +#define ALIAS_void_fn(src,dst) \ + void dst (void) \ + { src (); } extern __gthread_mutex_t __gcov_flush_mx ATTRIBUTE_HIDDEN; extern __gthread_mutex_t __gcov_flush_mx ATTRIBUTE_HIDDEN; @@ -133,7 +136,7 @@ __gcov_reset_int (void) __gcov_root.dumped = 0; } -STRONG_ALIAS (__gcov_reset_int, __gcov_reset); +ALIAS_void_fn (__gcov_reset_int, __gcov_reset); #endif /* L_gcov_reset */ |