Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 2015 20:28:21 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r279369 - projects/powernv/conf
Message-ID:  <201502272028.t1RKSLQn083726@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Fri Feb 27 20:28:21 2015
New Revision: 279369
URL: https://svnweb.freebsd.org/changeset/base/279369

Log:
  Use appropriate alternative to -msoft-float for clang-built PowerPC kernels.

Modified:
  projects/powernv/conf/kern.mk

Modified: projects/powernv/conf/kern.mk
==============================================================================
--- projects/powernv/conf/kern.mk	Fri Feb 27 20:11:02 2015	(r279368)
+++ projects/powernv/conf/kern.mk	Fri Feb 27 20:28:21 2015	(r279369)
@@ -131,7 +131,9 @@ INLINE_LIMIT?=	8000
 # Also explicitly disable Altivec instructions inside the kernel.
 #
 .if ${MACHINE_CPUARCH} == "powerpc"
-CFLAGS+=	-msoft-float -mno-altivec
+CFLAGS+=	-mno-altivec
+CFLAGS.clang+=	-mllvm -disable-ppc-float-in-variadic=true
+CFLAGS.gcc+=	-msoft-float
 INLINE_LIMIT?=	15000
 .endif
 
@@ -139,7 +141,7 @@ INLINE_LIMIT?=	15000
 # Use dot symbols on powerpc64 to make ddb happy
 #
 .if ${MACHINE_ARCH} == "powerpc64"
-CFLAGS+=	-mcall-aixdesc
+CFLAGS.gcc+=	-mcall-aixdesc
 .endif
 
 #



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