Module Name: src Committed By: mrg Date: Wed Feb 1 19:38:21 UTC 2023
Modified Files: src/external/gpl3/gcc/usr.bin: Makefile.inc Log Message: 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.35 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.35 --- 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 Wed Feb 1 19:38:20 2023 @@ -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 @@ 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}