svn commit: r230390 - head/sys/conf
Andreas Tobler
andreast at FreeBSD.org
Fri Jan 20 18:49:48 UTC 2012
Author: andreast
Date: Fri Jan 20 18:49:47 2012
New Revision: 230390
URL: http://svn.freebsd.org/changeset/base/230390
Log:
Disable GUPROF on archs other than i386/amd64 since the fine details are not
implemented.
Modified:
head/sys/conf/kern.pre.mk
Modified: head/sys/conf/kern.pre.mk
==============================================================================
--- head/sys/conf/kern.pre.mk Fri Jan 20 17:25:15 2012 (r230389)
+++ head/sys/conf/kern.pre.mk Fri Jan 20 18:49:47 2012 (r230390)
@@ -103,11 +103,14 @@ ASM_CFLAGS= -x assembler-with-cpp -DLOCO
.if defined(PROFLEVEL) && ${PROFLEVEL} >= 1
CFLAGS+= -DGPROF -falign-functions=16
+PROF= -pg
.if ${PROFLEVEL} >= 2
CFLAGS+= -DGPROF4 -DGUPROF
-PROF= -pg -mprofiler-epilogue
+.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
+PROF+= -mprofiler-epilogue
.else
-PROF= -pg
+.error "GUPROF not supported on ${MACHINE_CPUARCH}."
+.endif
.endif
.endif
DEFINED_PROF= ${PROF}
More information about the svn-src-all
mailing list