Module Name: src
Committed By: martin
Date: Sun Feb 5 12:44:40 UTC 2023
Modified Files:
src/external/gpl3/gcc/usr.bin [netbsd-10]: Makefile.inc
Log Message:
Pull up following revision(s) (requested by mrg in ticket #65):
external/gpl3/gcc/usr.bin/Makefile.inc: revision 1.35
for MKDEBUG builds, set CXXFLAGS += -g1 for all GCC binaries.
reduces the size of a non-x11 i386 build by 38% - 992MiB -> 612MiB,
and likely similar reductions elsewhere. it also reduced the build
time by about 3%, perhaps from less IO to write and less data to
compress. for amd64, the size was reduced 1137MiB -> 741MiB, about
35%, though i don't have timing guesses here.
note that these are sizes of .gz not .xz (i enable pigz for my
builds), and this probably has a much greater benefit for xz builds
as the sets creation phase is much slower there.
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.34.2.1 src/external/gpl3/gcc/usr.bin/Makefile.inc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/usr.bin/Makefile.inc
diff -u src/external/gpl3/gcc/usr.bin/Makefile.inc:1.34 src/external/gpl3/gcc/usr.bin/Makefile.inc:1.34.2.1
--- src/external/gpl3/gcc/usr.bin/Makefile.inc:1.34 Wed Dec 15 13:28:29 2021
+++ src/external/gpl3/gcc/usr.bin/Makefile.inc Sun Feb 5 12:44:40 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.34 2021/12/15 13:28:29 christos Exp $
+# $NetBSD: Makefile.inc,v 1.34.2.1 2023/02/05 12:44:40 martin Exp $
.ifndef _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_INC_
_EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_INC_=1
@@ -43,6 +43,11 @@ NBCOMPATLIB= -L${TOOLDIR}/lib -lnbcomp
CXXFLAGS+= -std=gnu++98
+# Reduce debugging for these extremely large objects.
+.if ${MKDEBUG:Uno} != "no"
+CXXFLAGS+= -g1
+.endif
+
GNUHOSTDIST= ${DIST}
BUILD_PREFIX= ${C_BUILD_PREFIX}