Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2017 20:13:29 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r313706 - projects/clang400-import/lib/libc/gdtoa
Message-ID:  <201702132013.v1DKDTK8029585@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702132013.v1DKDTK8029585>