From ef0bccd9ae008d146942b6049e261f7fa036ea0c Mon Sep 17 00:00:00 2001 From: furkanonder Date: Fri, 17 Apr 2020 03:03:47 +0300 Subject: [PATCH 1/3] bpo-40223: Add -fwrapv for new icc versions --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 6bc8499f7ffe62a..b19c40559f3f442 100644 --- a/configure.ac +++ b/configure.ac @@ -1991,6 +1991,13 @@ case "$CC" in ;; esac +# -fwrapv for new icc versions +case "$CC" in +*icc*) + CFLAGS_NODIST="$CFLAGS_NODIST -fwrapv" + ;; +esac + if test "$assertions" = 'true'; then : else From f2e3ead0f44bfe70e645cde6bca8a1762d312a9e Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Tue, 25 Aug 2020 21:06:31 +0300 Subject: [PATCH 2/3] check icc version --- configure | 10 ++++++++++ configure.ac | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/configure b/configure index d3e8149bec08bf8..9d345ff49cc106f 100755 --- a/configure +++ b/configure @@ -7572,6 +7572,16 @@ case "$CC" in ;; esac +# -fwrapv for new icc versions +case "$CC" in +*icc*) + icc_version=`icc -dumpversion` + if test ${icc_version} '>' 18.9; then + CFLAGS_NODIST="$CFLAGS_NODIST -fwrapv" + fi + ;; +esac + if test "$assertions" = 'true'; then : else diff --git a/configure.ac b/configure.ac index b19c40559f3f442..ae6c8ef46b88edd 100644 --- a/configure.ac +++ b/configure.ac @@ -1994,7 +1994,10 @@ esac # -fwrapv for new icc versions case "$CC" in *icc*) - CFLAGS_NODIST="$CFLAGS_NODIST -fwrapv" + icc_version=`icc -dumpversion` + if test ${icc_version} '>' 18.9; then + CFLAGS_NODIST="$CFLAGS_NODIST -fwrapv" + fi ;; esac From 6ff5d8027a7cd9cd814f556db014599058d5e423 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2020 19:16:18 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Misc/NEWS.d/next/Build/2020-08-25-19-16-17.bpo-40223.lyyg3t.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Build/2020-08-25-19-16-17.bpo-40223.lyyg3t.rst diff --git a/Misc/NEWS.d/next/Build/2020-08-25-19-16-17.bpo-40223.lyyg3t.rst b/Misc/NEWS.d/next/Build/2020-08-25-19-16-17.bpo-40223.lyyg3t.rst new file mode 100644 index 000000000000000..350a9b5da264522 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2020-08-25-19-16-17.bpo-40223.lyyg3t.rst @@ -0,0 +1 @@ +The segmentation fault caused by ICC compiler versions 19.0 and above is fixed by adding the -fwarp flag. \ No newline at end of file