Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Nov 2012 17:37:02 -0500
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r242715 - head/sys/conf
Message-ID:  <509AE28E.4020908@FreeBSD.org>
In-Reply-To: <201211072215.qA7MFSYX017265@svn.freebsd.org>
References:  <201211072215.qA7MFSYX017265@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2012-11-07 17:15:28 -0500, Dimitry Andric wrote:
> Author: dim Date: Wed Nov  7 22:15:28 2012 New Revision: 242715 
> URL: http://svnweb.freebsd.org/changeset/base/242715
> 
> Log: For kernel builds with PROFLEVEL >= 1, such as LINT, don't
> attempt to use the -falign-functions option if the compiler is
> clang, as the flag is not supported.
> 
> MFC after:	1 week
> 
> Modified: head/sys/conf/kern.pre.mk
> 
> Modified: head/sys/conf/kern.pre.mk 
> ==============================================================================
>
> 
- --- head/sys/conf/kern.pre.mk	Wed Nov  7 22:11:38 2012	(r242714)
> +++ head/sys/conf/kern.pre.mk	Wed Nov  7 22:15:28 2012	(r242715) @@
> -102,7 +102,10 @@ CLANG_NO_IAS= -no-integrated-as .endif
> 
> .if defined(PROFLEVEL) && ${PROFLEVEL} >= 1 -CFLAGS+=	-DGPROF
> -falign-functions=16 +CFLAGS+=	-DGPROF +.if ${COMPILER_TYPE} !=
> "clang" +CFLAGS+=	-falign-functions=16 +.endif .if ${PROFLEVEL} >=
> 2 CFLAGS+=	-DGPROF4 -DGUPROF PROF=	-pg -mprofiler-epilogue

FYI, PROF needs a similar work-around:

% clang -c -pg -mprofiler-epilogue test.c
clang: warning: argument unused during compilation: '-mprofiler-epilogue'

Jung-uk Kim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCa4o4ACgkQmlay1b9qnVMT+ACfZvPjmeamcED3OPT2W71TQzMB
msgAnROGgvnbfgjqqxePq/nKRxh462Eo
=Wyq/
-----END PGP SIGNATURE-----



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