Переглянути джерело

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

Manuel Novoa III 21 роки тому
батько
коміт
0b70c41321
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      libc/sysdeps/linux/common/bits/machine-gmon.h

+ 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)							      \
 {									      \