aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-7.1.inc
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2017-08-04 15:40:54 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-11 00:08:32 +0100
commit6f81fe4f3a1177c0049b26a070e43546bc6fe974 (patch)
tree29adb0fb7d6bc4734f88837f2649462a34de80c0 /meta/recipes-devtools/gcc/gcc-7.1.inc
parent35e3ed68fd25941e3d76e5a063299b1d1cee0e70 (diff)
downloadopenembedded-core-contrib-6f81fe4f3a1177c0049b26a070e43546bc6fe974.tar.gz
gcc7: fix potential segmentation fault
Under some rare circumstances we may end up with GCC segmentation fault. This was observed with versions of sysmacros.h, which contain macros with embedded warning messages : When trying to actually display the warning, we may end up with a segmentation fault instead. The reason is the actual warning message gets parsed (the text is unquoted) and words in the message such as "not", "and" etc. are interpreted as operators CPP_NOT, CPP_AND. When the time comes to display the warning, the code uses wrong structure to access the "name" corresponding to the operators. [YOCTO #11738] Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-7.1.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-7.1.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-7.1.inc b/meta/recipes-devtools/gcc/gcc-7.1.inc
index 3f1c06dafd..2d9ca82de9 100644
--- a/meta/recipes-devtools/gcc/gcc-7.1.inc
+++ b/meta/recipes-devtools/gcc/gcc-7.1.inc
@@ -75,6 +75,7 @@ SRC_URI = "\
file://0048-gcc-Enable-static-PIE.patch \
file://0049-libsanitizer-Use-stack_t-instead-of-struct-sigaltsta.patch \
file://0050-replace-struct-ucontext-with-ucontext_t.patch \
+ file://fix-segmentation-fault-precompiled-hdr.patch \
${BACKPORTS} \
"
BACKPORTS = "\