Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2012 18:49:48 +0000 (UTC)
From:      Andreas Tobler <andreast@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230390 - head/sys/conf
Message-ID:  <201201201849.q0KInmic054086@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}



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