svn commit: r313706 - projects/clang400-import/lib/libc/gdtoa
Dimitry Andric
dim at FreeBSD.org
Mon Feb 13 20:13:30 UTC 2017
Author: dim
Date: Mon Feb 13 20:13:29 2017
New Revision: 313706
URL: https://svnweb.freebsd.org/changeset/base/313706
Log:
For now, compile all of contrib/gdtoa without requiring strict aliasing,
since it is using type punning of union members, and clang does not yet
support gcc's extensions which allow this (refer to
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Type%2dpunning
for more information).
This should fix strtod(3) return values for the lang/julia port, so it
does not fail on an assertion during its build.
PR: 216770
Modified:
projects/clang400-import/lib/libc/gdtoa/Makefile.inc
Modified: projects/clang400-import/lib/libc/gdtoa/Makefile.inc
==============================================================================
--- projects/clang400-import/lib/libc/gdtoa/Makefile.inc Mon Feb 13 19:58:55 2017 (r313705)
+++ projects/clang400-import/lib/libc/gdtoa/Makefile.inc Mon Feb 13 20:13:29 2017 (r313706)
@@ -17,4 +17,5 @@ MISRCS+=gdtoa_${src}
CLEANFILES+=gdtoa_${src}
gdtoa_${src}: ${SRCTOP}/contrib/gdtoa/${src} .NOMETA
ln -sf ${.ALLSRC} ${.TARGET}
+CFLAGS.gdtoa_${src}+=-fno-strict-aliasing
.endfor
More information about the svn-src-projects
mailing list