tlib9: use __builtin_return_address on IBM XL/C - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 7a371bf93652573b3d57d50466d3ea22a6eebff2
(DIR) parent 20c841bac102e777a3a1723724fa5d31018fefcc
(HTM) Author: Ben Huntsman <BHuntsman@mail2.cu-portland.edu>
Date: Wed, 13 May 2020 22:39:53 -0700
lib9: use __builtin_return_address on IBM XL/C
Diffstat:
M include/libc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/include/libc.h b/include/libc.h
t@@ -385,7 +385,7 @@ extern int exitcode(char*);
extern void exits(char*);
extern double p9frexp(double, int*);
extern ulong getcallerpc(void*);
-#if defined(__GNUC__) || defined(__clang__)
+#if defined(__GNUC__) || defined(__clang__) || defined(__IBMC__)
#define getcallerpc(x) ((ulong)__builtin_return_address(0))
#endif
extern char* p9getenv(char*);