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)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 15 Jul 2017 08:24:28 +0000 (10:24 +0200)
commit5c90f6a7b68ebdc43ea72b763ec98a0a300c57a1
treeae8039493be070b0f19f9a595f4946c1db3850ac
parent0aa8612dc4bf76c9f0a58d17ee0ac68b583c0838
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>
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]