diff options
author | 2017-10-24 07:23:47 +0000 | |
---|---|---|
committer | 2017-10-24 07:23:47 +0000 | |
commit | aef9d4b0d7ac6bae4d772411b746625628ad8e8e (patch) | |
tree | c37daab29c9810c7b3622f2096043f6c2bcbe09b /src | |
parent | add ocaml 4.06 patches (diff) | |
download | gentoo-aef9d4b0d7ac6bae4d772411b746625628ad8e8e.tar.gz gentoo-aef9d4b0d7ac6bae4d772411b746625628ad8e8e.tar.bz2 gentoo-aef9d4b0d7ac6bae4d772411b746625628ad8e8e.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/patchsets/gcc/5.4.0/gentoo/92_all_asan-signal_h.patch | 15 | ||||
-rw-r--r-- | src/patchsets/gcc/5.4.0/gentoo/README.history | 3 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/patchsets/gcc/5.4.0/gentoo/92_all_asan-signal_h.patch b/src/patchsets/gcc/5.4.0/gentoo/92_all_asan-signal_h.patch new file mode 100644 index 0000000000..8711d53dcb --- /dev/null +++ b/src/patchsets/gcc/5.4.0/gentoo/92_all_asan-signal_h.patch @@ -0,0 +1,15 @@ +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> diff --git a/src/patchsets/gcc/5.4.0/gentoo/README.history b/src/patchsets/gcc/5.4.0/gentoo/README.history index e7981dcb88..21bbb7a031 100644 --- a/src/patchsets/gcc/5.4.0/gentoo/README.history +++ b/src/patchsets/gcc/5.4.0/gentoo/README.history @@ -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 |