svn commit: r262373 - projects/clang-sparc64/sys/conf
Dimitry Andric
dim at FreeBSD.org
Sun Feb 23 17:25:53 UTC 2014
Author: dim
Date: Sun Feb 23 17:25:53 2014
New Revision: 262373
URL: http://svnweb.freebsd.org/changeset/base/262373
Log:
Similar to r262306 for boot1's Makefile, clang spells -mcmodel=medany as
-mcmodel=large, for now. While here, disable -msoft-float for clang
since it is not supported, and add -fno-dwarf2-cfi-asm to stop it from
emitting .cfi directives, which GNU as does not support.
Modified:
projects/clang-sparc64/sys/conf/kern.mk
Modified: projects/clang-sparc64/sys/conf/kern.mk
==============================================================================
--- projects/clang-sparc64/sys/conf/kern.mk Sun Feb 23 13:39:15 2014 (r262372)
+++ projects/clang-sparc64/sys/conf/kern.mk Sun Feb 23 17:25:53 2014 (r262373)
@@ -93,7 +93,11 @@ INLINE_LIMIT?= 15000
# operations which it has a tendency to do.
#
.if ${MACHINE_CPUARCH} == "sparc64"
+.if ${COMPILER_TYPE} == "clang"
+CFLAGS+= -mcmodel=large -fno-dwarf2-cfi-asm
+.else
CFLAGS+= -mcmodel=medany -msoft-float
+.endif
INLINE_LIMIT?= 15000
.endif
More information about the svn-src-projects
mailing list