Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/arch/sparc64/conf pull up 1.30 (approved by thorpej):



details:   https://anonhg.NetBSD.org/src/rev/2dd336da0510
branches:  netbsd-1-5
changeset: 488947:2dd336da0510
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Aug 07 01:25:25 2000 +0000

description:
pull up 1.30 (approved by thorpej):
>Get kernel profiling to work.  Now if only gprof worked....

diffstat:

 sys/arch/sparc64/conf/Makefile.sparc64 |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r d81b878527e2 -r 2dd336da0510 sys/arch/sparc64/conf/Makefile.sparc64
--- a/sys/arch/sparc64/conf/Makefile.sparc64    Mon Aug 07 01:23:34 2000 +0000
+++ b/sys/arch/sparc64/conf/Makefile.sparc64    Mon Aug 07 01:25:25 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.sparc64,v 1.26.2.1 2000/07/27 00:00:31 mycroft Exp $
+#      $NetBSD: Makefile.sparc64,v 1.26.2.2 2000/08/07 01:25:25 mrg Exp $
 
 # Makefile for NetBSD
 #
@@ -21,7 +21,6 @@
 # DEBUG is set to -g if debugging.
 # PROF is set to -pg if profiling.
 
-
 .if defined(MAKECONF) && exists(${MAKECONF})
 .include "${MAKECONF}"
 .elif exists(/etc/mk.conf)
@@ -68,6 +67,10 @@
 CWARNFLAGS=    -Wimplicit -Wunused -Wswitch -Wcomment -Wtrigraphs -Wchar-subscripts -Wparentheses -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
 #CWARNFLAGS=   -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
 CFLAGS=                ${DEBUG} ${COPTS} ${CWARNFLAGS} -Wa,-Av9a -mno-fpu
+.if defined(PROF)
+# We need to run the compiler in medlow memory model.
+CFLAGS += -mcmodel=medlow
+.endif
 AFLAGS=                -x assembler-with-cpp -traditional-cpp -D_LOCORE -Wa,-Av9a
 LINKFLAGS=     -Ttext f1000000 -Tdata f1400000 -e start
 #LINKFLAGS=    -N -Ttext f1000000 -e start



Home | Main Index | Thread Index | Old Index