]> granicus.if.org Git - python/commit
bpo-30104: Use -fno-strict-aliasing on clang (#1376) (#1377)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 2 May 2017 09:16:21 +0000 (11:16 +0200)
committerGitHub <noreply@github.com>
Tue, 2 May 2017 09:16:21 +0000 (11:16 +0200)
commit03a7ab77d2f75323e1f3e8b6a1c164e701d58bfb
tree658f42cfb08dbf7683a647fc077b61f99bed9e50
parente37d163ab215964898705d0bdb9c5457fad53708
bpo-30104: Use -fno-strict-aliasing on clang (#1376) (#1377)

Python/dtoa.c is not compiled correctly with clang 4.0 and
optimization level -O2 or higher, because of an aliasing issue on the
double/ULong[2] union. Only compile dtoa.c with -fno-strict-aliasing.

LLVM bug report:
https://bugs.llvm.org//show_bug.cgi?id=31928
(cherry picked from commit 809101f14f27ddb394cd77c477470761ecf99f41)
Makefile.pre.in
configure
configure.ac