summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez@gmail.com>2017-07-12 11:39:26 +0200
committerGitHub <noreply@github.com>2017-07-12 11:39:26 +0200
commit2d03974c1223bbd3f1535fde1be2f03148bbed82 (patch)
tree802f2943cbae93a77f8f698eaa1966283caa4148 /configure
parent76ced0106243cd0b7ed7e4da7fe3eaeee1d900b0 (diff)
downloadocaml-2d03974c1223bbd3f1535fde1be2f03148bbed82.tar.gz
PR#7452: tweak GCC options to try to work around the Skylake/Kaby lake bug (#1228)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index ec5e73c5eb..e79659954c 100755
--- a/configure
+++ b/configure
@@ -864,6 +864,16 @@ else
fi
+# Try to work around the Skylake/Kaby Lake processor bug.
+case "$bytecc,$target" in
+ *gcc*,x86_64-*|*gcc*,i686-*)
+ if sh ./hasgot -Werror -fno-tree-vrp; then
+ byteccprivatecompopts="$byteccprivatecompopts -fno-tree-vrp"
+ inf "Adding -fno-tree-vrp option to work around PR#7452"
+ fi;;
+esac
+
+
# Configure the native-code compiler
# The NATIVECC make variable defines which compiler and options to use