소스 검색

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