Commit 71c3e2ef by Nathan Sidwell Committed by Nathan Sidwell

libgcov-interface.c (STRONG_ALIAS): Rename to ...

	* libgcov-interface.c (STRONG_ALIAS): Rename to ...
	(ALIAS_weak): ... here. Use forwarding function.  Adjust uses.

From-SVN: r215005
parent 2ce145f5
2014-09-07 Nathan sidwell <nathan@acm.org>
* libgcov-interface.c (STRONG_ALIAS): Rename to ...
(ALIAS_weak): ... here. Use forwarding function. Adjust uses.
2014-09-05 Joseph Myers <joseph@codesourcery.com> 2014-09-05 Joseph Myers <joseph@codesourcery.com>
* Makefile.in (CRTSTUFF_CFLAGS): Add -fbuilding-libgcc. * Makefile.in (CRTSTUFF_CFLAGS): Add -fbuilding-libgcc.
......
...@@ -42,11 +42,14 @@ void __gcov_dump (void) {} ...@@ -42,11 +42,14 @@ void __gcov_dump (void) {}
#else #else
/* Some functions we want to bind in this dynamic object, but have an /* Some functions we want to bind in this dynamic object, but have an
overridable global alias. */ overridable global alias. Unfortunately not all targets support
#define STRONG_ALIAS(src,dst) \ aliases, so we just have a forwarding function. That'll be tail
extern __typeof (src) dst __attribute__((alias (#src))) 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;
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) ...@@ -133,7 +136,7 @@ __gcov_reset_int (void)
__gcov_root.dumped = 0; __gcov_root.dumped = 0;
} }
STRONG_ALIAS (__gcov_reset_int, __gcov_reset); ALIAS_void_fn (__gcov_reset_int, __gcov_reset);
#endif /* L_gcov_reset */ #endif /* L_gcov_reset */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment