This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/2] Libsanitizer merge from upstream r253555.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Maxim Ostapenko <m dot ostapenko at partner dot samsung dot com>
- Cc: Christophe Lyon <christophe dot lyon at linaro dot org>, Kostya Serebryany <kcc at google dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Yury Gribov <y dot gribov at samsung dot com>, Vyacheslav Barinov <v dot barinov at samsung dot com>, Slava Garbuzov <v dot garbuzov at samsung dot com>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Date: Mon, 23 Nov 2015 13:41:12 +0100
- Subject: Re: [PATCH 1/2] Libsanitizer merge from upstream r253555.
- Authentication-results: sourceware.org; auth=none
- References: <5652C3E0 dot 4030000 at partner dot samsung dot com> <5652C459 dot 8090500 at partner dot samsung dot com> <20151123080753 dot GS5675 at tucnak dot redhat dot com> <CAKdteOaq_KXy_0OaKk0ePvHjCubRtXzoKi8tNpUK-RD3VxgMAw at mail dot gmail dot com> <565307B5 dot 3000901 at partner dot samsung dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Nov 23, 2015 at 03:33:57PM +0300, Maxim Ostapenko wrote:
> + Adhemerval
>
> Christophe, it looks like your kernel headers (asm/ptrace.h) don't contain
> ARM_VFPREGS_SIZE. Do you use old kernel version?
Unlike LLVM, we do care to support older kernel headers.
So, if it is say a define, you could add
libsanitizer/include/system/linux/ptrace.h
or
libsanitizer/include/system/asm/ptrace.h
that would #include_next the original header and ifdef __arm__ and
that define is not defined (or some other condition, kernel version etc.),
define it.
Jakub