Эх сурвалжийг харах

Patch from Yoshinori Sato <ysato@users.sourceforge.jp>.

Manuel Novoa III 21 жил өмнө
parent
commit
0b70c41321

+ 4 - 0
libc/sysdeps/linux/common/bits/machine-gmon.h

@@ -47,6 +47,10 @@ static void mcount_internal (u_long frompc, u_long selfpc);
 #define _MCOUNT_DECL(frompc, selfpc) \
 static inline void mcount_internal (u_long frompc, u_long selfpc)
 
+#ifndef RETURN_ADDRESS
+#define RETURN_ADDRESS(n) __builtin_return_address(n)
+#endif
+
 #define MCOUNT \
 void _mcount (void)							      \
 {									      \