Date: Thu, 11 Jun 2009 13:02:14 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r193998 - in projects/clangbsd/lib: libc msun Message-ID: <200906111302.n5BD2Ejp048151@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906111302.n5BD2Ejp048151>