From 5e7e890a0b75fc9b64838dd197f554c6c6285d88 Mon Sep 17 00:00:00 2001 From: Tommi Rantala Date: Wed, 19 Sep 2012 14:45:11 +0300 Subject: [PATCH] Plug in `ALIAS' attribute --- src/mi/backtrace.c | 2 +- tests/crasher.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mi/backtrace.c b/src/mi/backtrace.c index b5205356..91d6597a 100644 --- a/src/mi/backtrace.c +++ b/src/mi/backtrace.c @@ -76,6 +76,6 @@ unw_backtrace (void **buffer, int size) } extern int backtrace (void **buffer, int size) - WEAK __attribute__((alias("unw_backtrace"))); + WEAK ALIAS(unw_backtrace); #endif /* !UNW_REMOTE_ONLY */ diff --git a/tests/crasher.c b/tests/crasher.c index 2cf65e8d..24c78054 100644 --- a/tests/crasher.c +++ b/tests/crasher.c @@ -87,7 +87,7 @@ write_maps(char *fname) #endif #ifdef __GNUC__ -int c(int x) NOINLINE __attribute__((alias("b"))); +int c(int x) NOINLINE ALIAS(b); #define compiler_barrier() asm volatile(""); #else int c(int x);