svn commit: r193998 - in projects/clangbsd/lib: libc msun

Ed Schouten ed at FreeBSD.org
Thu Jun 11 13:02:14 UTC 2009


Author: ed
Date: Thu Jun 11 13:02:13 2009
New Revision: 193998
URL: http://svn.freebsd.org/changeset/base/193998

Log:
  Build both libc and msun with GCC on i386.
  
  It turns out there are still issues with inline assembly with FPU
  instructions.
  
  Reported by:	Dominique Goncalves <dominique goncalves gmail com>

Modified:
  projects/clangbsd/lib/libc/Makefile
  projects/clangbsd/lib/msun/Makefile

Modified: projects/clangbsd/lib/libc/Makefile
==============================================================================
--- projects/clangbsd/lib/libc/Makefile	Thu Jun 11 12:56:14 2009	(r193997)
+++ projects/clangbsd/lib/libc/Makefile	Thu Jun 11 13:02:13 2009	(r193998)
@@ -5,6 +5,11 @@ SHLIBDIR?= /lib
 
 .include <bsd.own.mk>
 
+# XXX: LLVM PR879 in ldexp.c
+.if ${MK_CLANG_IS_CC} != "no" && ${CC} == "cc" && ${MACHINE_ARCH} == "i386"
+CC=	gcc
+.endif
+
 # All library objects contain FreeBSD revision strings by default; they may be
 # excluded as a space-saving measure.  To produce a library that does
 # not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS

Modified: projects/clangbsd/lib/msun/Makefile
==============================================================================
--- projects/clangbsd/lib/msun/Makefile	Thu Jun 11 12:56:14 2009	(r193997)
+++ projects/clangbsd/lib/msun/Makefile	Thu Jun 11 13:02:13 2009	(r193998)
@@ -12,6 +12,13 @@
 #
 #
 
+.include <bsd.own.mk>
+
+# XXX: LLVM PR879 in e_rem_pio2.c
+.if ${MK_CLANG_IS_CC} != "no" && ${CC} == "cc" && ${MACHINE_ARCH} == "i386"
+CC=	gcc
+.endif
+
 .if ${MACHINE_ARCH} == "i386"
 ARCH_SUBDIR= i387
 .else


More information about the svn-src-projects mailing list