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/65b17be4118e
branches:  trunk
changeset: 1021793:65b17be4118e
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 fd742a1b7f9a -r 65b17be4118e 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