svn commit: r242715 - head/sys/conf

Dimitry Andric dim at FreeBSD.org
Wed Nov 7 22:15:28 UTC 2012


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


More information about the svn-src-all mailing list