Source-Changes-HG archive

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

[src/trunk]: src/distrib/sparc For clang, optimize both ramdisk and miniroot ...



details:   https://anonhg.NetBSD.org/src/rev/a75ab25a9310
branches:  trunk
changeset: 343809:a75ab25a9310
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Feb 27 18:52:51 2016 +0000

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

diffstat:

 distrib/sparc/miniroot/Makefile.inc |  5 +++--
 distrib/sparc/ramdisk/Makefile      |  4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r ef9a5824858e -r a75ab25a9310 distrib/sparc/miniroot/Makefile.inc
--- a/distrib/sparc/miniroot/Makefile.inc       Sat Feb 27 18:50:39 2016 +0000
+++ b/distrib/sparc/miniroot/Makefile.inc       Sat Feb 27 18:52:51 2016 +0000
@@ -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
diff -r ef9a5824858e -r a75ab25a9310 distrib/sparc/ramdisk/Makefile
--- a/distrib/sparc/ramdisk/Makefile    Sat Feb 27 18:50:39 2016 +0000
+++ b/distrib/sparc/ramdisk/Makefile    Sat Feb 27 18:52:51 2016 +0000
@@ -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 @@
 IMAGESIZE=     1800b
 
 WARNS=         1
-DBG=           -Os
+DBG=           ${${ACTIVE_CC} == "clang":? -Oz -fomit-frame-pointer -fno-unwind-tables : -Os }
 
 CRUNCHBIN=     ramdiskbin
 LISTS=         ${.CURDIR}/list



Home | Main Index | Thread Index | Old Index