]> gcc.gnu.org Git - gcc.git/commitdiff
Fix compilation on older systems
authorVitaly Buka <vitalybuka@google.com>
Tue, 20 Oct 2020 05:44:34 +0000 (22:44 -0700)
committerMartin Liska <mliska@suse.cz>
Tue, 20 Oct 2020 09:15:10 +0000 (11:15 +0200)
Cherry-pick upstream commit f97ca48b1cbbf5da065e94271cb3af4f1c907dd4.

Fixes https://bugs.llvm.org/show_bug.cgi?id=47896

libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp

index 6a3c00458efb435b63d439f30b1305449d63e6b3..eb89f1fddc5be2180cc1cc3d756a397ea4d8b582 100644 (file)
@@ -486,6 +486,10 @@ typedef user_regs_struct regs_struct;
 #define REG_SP rsp
 #endif
 #define ARCH_IOVEC_FOR_GETREGSET
+// Support ptrace extensions even when compiled without required kernel support
+#ifndef NT_X86_XSTATE
+#define NT_X86_XSTATE 0x202
+#endif
 // Compiler may use FP registers to store pointers.
 static constexpr uptr kExtraRegs[] = {NT_X86_XSTATE, NT_FPREGSET};
 
This page took 0.060574 seconds and 5 git commands to generate.