diff options
author | Martin Liska <mliska@suse.cz> | 2021-11-05 18:11:23 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-11-05 18:21:27 +0100 |
commit | 2afc8f0b9198f3ee8274cf9c6b9352cab6cf9d4b (patch) | |
tree | cb3f31db83c81ead0da8f8f7d2a5f74531c3b73f /libsanitizer/sanitizer_common/sanitizer_stacktrace.h | |
parent | 1f6dd5de33912c261a5003150212c290165ac1b6 (diff) | |
download | gcc-2afc8f0b9198f3ee8274cf9c6b9352cab6cf9d4b.tar.gz |
libsanitizer: merge from master (78d3e0a4f1406b17cdecc77540e09210670fe9a9).
Diffstat (limited to 'libsanitizer/sanitizer_common/sanitizer_stacktrace.h')
-rw-r--r-- | libsanitizer/sanitizer_common/sanitizer_stacktrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsanitizer/sanitizer_common/sanitizer_stacktrace.h b/libsanitizer/sanitizer_common/sanitizer_stacktrace.h index ea330f36f7d..11c6154b09e 100644 --- a/libsanitizer/sanitizer_common/sanitizer_stacktrace.h +++ b/libsanitizer/sanitizer_common/sanitizer_stacktrace.h @@ -209,11 +209,11 @@ static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) { // StackTrace::GetCurrentPc() faster. #if defined(__x86_64__) # define GET_CURRENT_PC() \ - ({ \ + (__extension__({ \ uptr pc; \ asm("lea 0(%%rip), %0" : "=r"(pc)); \ pc; \ - }) + })) #else # define GET_CURRENT_PC() StackTrace::GetCurrentPc() #endif |