Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/gcc/usr.bin for MKDEBUG builds, set CXXFLAGS +...



details:   https://anonhg.NetBSD.org/src/rev/7bb5f3156547
branches:  trunk
changeset: 373319:7bb5f3156547
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Feb 01 19:38:20 2023 +0000

description:
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.

diffstat:

 external/gpl3/gcc/usr.bin/Makefile.inc |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r dc526af5e592 -r 7bb5f3156547 external/gpl3/gcc/usr.bin/Makefile.inc
--- a/external/gpl3/gcc/usr.bin/Makefile.inc    Wed Feb 01 10:22:20 2023 +0000
+++ b/external/gpl3/gcc/usr.bin/Makefile.inc    Wed Feb 01 19:38:20 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.34 2021/12/15 13:28:29 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.35 2023/02/01 19:38:20 mrg Exp $
 
 .ifndef _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_INC_
 _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_INC_=1
@@ -43,6 +43,11 @@
 
 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}
 



Home | Main Index | Thread Index | Old Index