Source-Changes-HG archive

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

[src/trunk]: src/distrib/sun2/ramdisk make this build with GCC 10.



details:   https://anonhg.NetBSD.org/src/rev/d4aaf51e141f
branches:  trunk
changeset: 984014:d4aaf51e141f
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jun 18 20:30:58 2021 +0000

description:
make this build with GCC 10.

change makefs flags from:
   density=2048
to:
   density=3072,bsize=4096,fsize=512,optimization=space

so that everything fits again.  add some comment GCC flags
that may help reduce size a little more.

diffstat:

 distrib/sun2/ramdisk/Makefile |  24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r 8e4c049021bb -r d4aaf51e141f distrib/sun2/ramdisk/Makefile
--- a/distrib/sun2/ramdisk/Makefile     Fri Jun 18 20:29:00 2021 +0000
+++ b/distrib/sun2/ramdisk/Makefile     Fri Jun 18 20:30:58 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.26 2021/03/01 16:50:01 martin Exp $
+#      $NetBSD: Makefile,v 1.27 2021/06/18 20:30:58 mrg Exp $
 
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -6,10 +6,28 @@
 
 IMAGE=         ramdisk.fs
 IMAGESIZE=     600k
-MAKEFS_FLAGS+= -f 15 -o density=2048
+MAKEFS_FLAGS+= -f 15 -o density=3072,bsize=4096,fsize=512,optimization=space
 
 WARNS=         1
-DBG=           -Os -fno-unwind-tables
+DBG=           -Os -fno-unwind-tables -fno-ident
+
+# XXXMRG - see if these help/hinder reduced size?
+#-fno-jump-tables 
+#-fzero-initialized-in-bss
+#-fgcse-after-reload
+#-fdelete-null-pointer-checks
+#-fno-sched-interblock
+#-fno-sched-spec
+#-fsched-pressure
+#-fcode-hoisting
+#-ftree-partial-pre
+#-fno-ipa-cp
+#-ftree-builtin-call-dce
+#-fno-align-functions
+#-fno-align-loops
+#-fno-align-jumps
+#-fno-align-labels
+#-fallow-store-data-races
 
 CRUNCHBIN=     rd_bin
 LISTS=         ${.CURDIR}/list



Home | Main Index | Thread Index | Old Index