diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-02-13 20:13:29 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-02-13 20:13:29 +0000 |
commit | c9117188c5e35c662b78693b672efc203d4e3c76 (patch) | |
tree | 4e6daf9d1b1683bb435d00453e74617346226b63 /lib/libc | |
parent | 1a36faad54665288ed4eb839d2a4699ae2ead45e (diff) | |
download | src-c9117188c5e35c662b78693b672efc203d4e3c76.tar.gz src-c9117188c5e35c662b78693b672efc203d4e3c76.zip |
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
Notes
Notes:
svn path=/projects/clang400-import/; revision=313706
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gdtoa/Makefile.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gdtoa/Makefile.inc b/lib/libc/gdtoa/Makefile.inc index 61dbf34adbae..c900a24e3899 100644 --- a/lib/libc/gdtoa/Makefile.inc +++ b/lib/libc/gdtoa/Makefile.inc @@ -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 |