diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-04-28 13:07:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-28 13:07:10 (GMT) |
commit | 826f83f1d562a7b878499bc3af2267cfdfe5f2f9 (patch) | |
tree | d35096a04bd036d1e807309764002f40d4274f9e /configure | |
parent | 5a4e3d8f9c37e700402b23fafbfc413e5ca3113d (diff) | |
download | cpython-826f83f1d562a7b878499bc3af2267cfdfe5f2f9.zip cpython-826f83f1d562a7b878499bc3af2267cfdfe5f2f9.tar.gz cpython-826f83f1d562a7b878499bc3af2267cfdfe5f2f9.tar.bz2 |
bpo-30104: Only use -fno-strict-aliasing on dtoa.c (#1340)
On clang, only compile dtoa.c with -fno-strict-aliasing, use strict
aliasing to compile all other C files.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -668,6 +668,7 @@ OTHER_LIBTOOL_OPT UNIVERSAL_ARCH_FLAGS CFLAGS_NODIST BASECFLAGS +CFLAGS_ALIASING OPT LLVM_PROF_FOUND target_os @@ -6829,13 +6830,7 @@ then then # Clang also needs -fwrapv WRAP="-fwrapv" - - # bpo-30104: Python/dtoa.c requires to be build with - # -fno-strict-aliasing to fix compiler issue on the - # double/ULong[2] union using clang 4.0 and optimization level - # -O2 or higher - # https://bugs.llvm.org//show_bug.cgi?id=31928 - ALIASING="-fno-strict-aliasing" + CFLAGS_ALIASING="-fno-strict-aliasing" fi case $ac_cv_prog_cc_g in @@ -6857,7 +6852,7 @@ then ;; esac - OPT="$OPT $STRICT_PROTO $ALIASING" + OPT="$OPT $STRICT_PROTO" case $ac_sys_system in SCO_SV*) OPT="$OPT -m486 -DSCO5" |