PERFORCE change 32062 for review

Peter Wemm peter at FreeBSD.org
Thu May 29 15:23:26 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=32062

Change 32062 by peter at peter_hammer on 2003/05/29 15:22:29

	Add -fno-asynchronous-unwind-tables to stop generating the wasteful
	(since we dont use it yet) dwarf2 unwind tables.
	Detect DDB and add -fno-omit-frame-pointer if so.  I'm not sure that
	I can really do this, but lets find out. :-)

Affected files ...

.. //depot/projects/hammer/sys/conf/Makefile.amd64#11 edit
.. //depot/projects/hammer/sys/conf/kern.mk#11 edit

Differences ...

==== //depot/projects/hammer/sys/conf/Makefile.amd64#11 (text+ko) ====

@@ -31,6 +31,11 @@
 .endif
 .include "$S/conf/kern.pre.mk"
 
+DDB_ENABLED!=	grep DDB opt_ddb.h
+.if ${DDB_ENABLED} != ""
+CFLAGS+=	-fno-omit-frame-pointer
+.endif
+
 MKMODULESENV+= MACHINE=amd64
 
 %BEFORE_DEPEND

==== //depot/projects/hammer/sys/conf/kern.mk#11 (text+ko) ====

@@ -58,7 +58,8 @@
 #
 .if ${MACHINE_ARCH} == "amd64"
 CFLAGS+=	-mcmodel=kernel -mno-red-zone \
-		-mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float
+		-mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float \
+		-fno-asynchronous-unwind-tables
 .endif
 
 #


More information about the p4-projects mailing list