Module Name:    src
Committed By:   joerg
Date:           Sat Feb 27 18:52:51 UTC 2016

Modified Files:
        src/distrib/sparc/miniroot: Makefile.inc
        src/distrib/sparc/ramdisk: Makefile

Log Message:
For clang, optimize both ramdisk and miniroot for minimal size and skip
frame pointers where possible.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/distrib/sparc/miniroot/Makefile.inc
cvs rdiff -u -r1.41 -r1.42 src/distrib/sparc/ramdisk/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sparc/miniroot/Makefile.inc
diff -u src/distrib/sparc/miniroot/Makefile.inc:1.21 src/distrib/sparc/miniroot/Makefile.inc:1.22
--- src/distrib/sparc/miniroot/Makefile.inc:1.21	Mon Aug  4 13:09:42 2014
+++ src/distrib/sparc/miniroot/Makefile.inc	Sat Feb 27 18:52:51 2016
@@ -1,7 +1,8 @@
-#	$NetBSD: Makefile.inc,v 1.21 2014/08/04 13:09:42 martin Exp $
+#	$NetBSD: Makefile.inc,v 1.22 2016/02/27 18:52:51 joerg Exp $
 
 IMAGESIZE=	9216k
-DBG=		-Os -fno-unwind-tables
+DBG=		${${ACTIVE_CC} == "clang":? -Oz -fomit-frame-pointer : -Os } -fno-unwind-tables
+
 MAKEFS_FLAGS=   -o density=4k
 IMAGEENDIAN=	be
 MAKEDEVTARGETS=	all ipty

Index: src/distrib/sparc/ramdisk/Makefile
diff -u src/distrib/sparc/ramdisk/Makefile:1.41 src/distrib/sparc/ramdisk/Makefile:1.42
--- src/distrib/sparc/ramdisk/Makefile:1.41	Tue Jun  9 11:06:09 2009
+++ src/distrib/sparc/ramdisk/Makefile	Sat Feb 27 18:52:51 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.41 2009/06/09 11:06:09 he Exp $
+#	$NetBSD: Makefile,v 1.42 2016/02/27 18:52:51 joerg Exp $
 #
 # ramdisk.fs is the microroot filesystem intended for use with
 # the INSTALL kernel. It provides just enough tools to extract the
@@ -13,7 +13,7 @@ IMAGE=		ramdisk.fs
 IMAGESIZE=	1800b
 
 WARNS=		1
-DBG=		-Os
+DBG=		${${ACTIVE_CC} == "clang":? -Oz -fomit-frame-pointer -fno-unwind-tables : -Os }
 
 CRUNCHBIN=	ramdiskbin
 LISTS=		${.CURDIR}/list

Reply via email to