slyfox 17/10/24 07:23:47
Modified: README.history
Added: 92_all_asan-signal_h.patch
Log:
gcc/5.4.0: add missing <signal.h> inclusion to asan
Without this patch glibc-2.25-r8 (ppc and ppc64) gcc build fails as:
.../portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/libsanitizer/asan/asan_linux.cc:
In function 'bool __asan::AsanInterceptsSignal(int)':
.../portage/sys-devel/gcc-5.4.0-r3/work/gcc-5.4.0/libsanitizer/asan/asan_linux.cc:222:20:
error: 'SIGSEGV' was not declared in this scope
return signum == SIGSEGV && common_flags()->handle_segv;
^
Reported-by: Andreas K. Hüttel
Bug: https://bugs.gentoo.org/629502#c9
Revision Changes Path
1.6 src/patchsets/gcc/5.4.0/gentoo/README.history
file :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.4.0/gentoo/README.history?rev=1.6&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.4.0/gentoo/README.history?rev=1.6&content-type=text/plain
diff :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.4.0/gentoo/README.history?r1=1.5&r2=1.6
Index: README.history
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/5.4.0/gentoo/README.history,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- README.history 6 Aug 2017 14:51:39 -0000 1.5
+++ README.history 24 Oct 2017 07:23:47 -0000 1.6
@@ -1,6 +1,7 @@
+1.5 24 Oct 2017
+ + 92_all_asan-signal_h.patch
1.4 06 Aug 2017
+ 91_all_compatibility_fix_with_perl_5.26.patch
-
1.3 01 Feb 2017
+ 71_all_gcc-5-march-native-pr67310.patch
+ 78_all_gcc-5-pr71442
1.1 src/patchsets/gcc/5.4.0/gentoo/92_all_asan-signal_h.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.4.0/gentoo/92_all_asan-signal_h.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/5.4.0/gentoo/92_all_asan-signal_h.patch?rev=1.1&content-type=text/plain
Index: 92_all_asan-signal_h.patch
===================================================================
Fix error: ‘SIGSEGV’ was not declared in this scope
https://bugs.gentoo.org/629502#c9
https://patchwork.ozlabs.org/patch/725596/
--- a/libsanitizer/asan/asan_linux.cc
+++ b/libsanitizer/asan/asan_linux.cc
@@ -29,6 +29,7 @@
#include <dlfcn.h>
#include <fcntl.h>
#include <pthread.h>
+#include <signal.h>
#include <stdio.h>
#include <unistd.h>
#include <unwind.h>