]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
gcc: fix build of libsanitizer in gcc 4.9 and 5.x on PowerPC
authorMatt Weber <matthew.weber@rockwellcollins.com>
Thu, 13 Jul 2017 20:00:05 +0000 (15:00 -0500)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 20 Jul 2017 05:32:17 +0000 (07:32 +0200)
commit631f617399b69d0933b65416a28aec7f403407d0
tree92a319722bd02ed72b409ee4b5c59963d0269264
parentdb62aed533c6c31568be7b0e0c818c7b17f78537
gcc: fix build of libsanitizer in gcc 4.9 and 5.x on PowerPC

libsanitizer in gcc fails to build on PowerPC with gcc versions 4.9
and 5.x used in conjunction with glibc 2.25, with the following error:

../../../../gcc-host/libsanitizer/asan/asan_linux.cc: In function 'bool __asan::AsanInterceptsSignal(int)':
../../../../gcc-host/libsanitizer/asan/asan_linux.cc:222:20: error: 'SIGSEGV' was not declared in this scope
   return signum == SIGSEGV && common_flags()->handle_segv;

This commit adds a patch that has been submitted to upstream gcc
(https://patchwork.ozlabs.org/patch/725596/) but not merged. The patch
is no longer needed with gcc 6.x and later because the code has been
reworked.

Fixes Buildroot bug #10061

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
[Thomas: rework commit log.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
(cherry picked from commit 5c90f6a7b68ebdc43ea72b763ec98a0a300c57a1)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gcc/4.9.4/942-asan-fix-missing-include-signal-h.patch [new file with mode: 0644]
package/gcc/5.4.0/942-asan-fix-missing-include-signal-h.patch [new file with mode: 0644]