Use newly added __used attribute to keep static function symbol from

being eliminated.
This commit is contained in:
Alexander Kabaev 2004-07-29 18:02:28 +00:00
parent b289983ea4
commit 8b5ae4db0d

View File

@ -92,7 +92,7 @@ extern int mcount_lock;
#define FUNCTION_ALIGNMENT 4
#define _MCOUNT_DECL \
static void _mcount(uintfptr_t frompc, uintfptr_t selfpc) __unused; \
static void _mcount(uintfptr_t frompc, uintfptr_t selfpc) __used; \
static void _mcount
#ifdef __GNUC__