From owner-svn-src-projects@FreeBSD.ORG Sun Feb 23 17:25:53 2014 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3109B0; Sun, 23 Feb 2014 17:25:53 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A060212BE; Sun, 23 Feb 2014 17:25:53 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1NHPrFc041097; Sun, 23 Feb 2014 17:25:53 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1NHPr8f041096; Sun, 23 Feb 2014 17:25:53 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201402231725.s1NHPr8f041096@svn.freebsd.org> From: Dimitry Andric Date: Sun, 23 Feb 2014 17:25:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r262373 - projects/clang-sparc64/sys/conf X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Feb 2014 17:25:53 -0000 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