From: Max Ostapenko Date: Tue, 24 Nov 2015 08:44:39 +0000 (+0200) Subject: Fix libsanitizer build with old kernel headers on ARM after r230739. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=664dd3cfbd562086f377e0ab469ca21e332dd933;p=gcc.git Fix libsanitizer build with old kernel headers on ARM after r230739. libsanitizer/ * include/system/linux/asm/ptrace.h: New header. From-SVN: r230790 --- diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index b97fc7d8344..c392c57fcac 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,3 +1,7 @@ +2015-11-24 Maxim Ostapenko + + * include/system/linux/asm/ptrace.h: New header. + 2015-11-23 Maxim Ostapenko * All source files: Merge from upstream r253555. diff --git a/libsanitizer/include/system/linux/asm/ptrace.h b/libsanitizer/include/system/linux/asm/ptrace.h new file mode 100644 index 00000000000..d4249fee960 --- /dev/null +++ b/libsanitizer/include/system/linux/asm/ptrace.h @@ -0,0 +1,7 @@ +#include_next +/* ARM_VFPREGS_SIZE has been added in 3.0 */ +#if defined(__arm__) && !defined(ARM_VFPREGS_SIZE) +/* The size of the user-visible VFP state as seen by PTRACE_GET/SETVFPREGS + and core dumps. */ +#define ARM_VFPREGS_SIZE ( 32 * 8 /*fpregs*/ + 4 /*fpscr*/ ) +#endif