From nobody Mon Sep 14 14:47:30 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hk7Kb1LL3z6sgjR for ; Mon, 14 Sep 2026 14:47:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hk7KZ6nwWz4Yrb for ; Mon, 14 Sep 2026 14:47:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789397251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/IQbRSZvj1q22Fa+Uj7LhPpoNNPgMKhb4lVFbafd69g=; b=P9ib2BhclZa+ctrXVJOArtlqeq5lsxVJyDKg8cjWn04yIeq9TMcwR9uRFO5KEwjE/0+UZG t1RvNxAH6X5by/ew6Us6XBiyjNEFS9TiBF0cEBplmbyFxBcADdKBHuJkARxLyXJFsCPE2g TlkfO3EiQSmVZyaGQPlS6C9IM6mt8NhHCc1/r9ckzFK4n6ZcqlLyC40GjlYdGRlyWBDB4J hf4LAF8Hixl/4gMkDnLyaK04h+ERzH07WfrJqglRJxDt2VEF5kGvkGm4mgLf2wSnMFqq1c LpMzf4X73EXn+CA1Hfdr4RYynfgcrQBDCeEu4+Aoqs9YL6osDmJPCHPlEAEY/A== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789397251; b=mdiMjLe5LxwtjaLg515hoM2iXvLRvJ4Pvyf18xXYuL30eyzR4uk2w+as4mip45i2YujbZw B/BHk1Ri/JBY1ym5/4A9dsigcrpdzPpnssir+jWSbLINJc5AtXSs3JVyZsQzzZLDxNRrzW Iemef/p1OD4oFJzLtMs8OBw2XBJHioYsEOVZsFqrc4qveW1a1CFQcvgW0H5Vc8LnDHcJhZ x5oIABu52FMVkiZimjqB7rf7chPGQLI0FPLnBvxjtOtCWD2jkxNo3iWOVB6nSHO8y1JQZX Qragqw4t3ZrCo/yjuTc8+ep01jXKHM+bzTxDHxISyKbgw09FPg2UrcilFfYe+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789397251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/IQbRSZvj1q22Fa+Uj7LhPpoNNPgMKhb4lVFbafd69g=; b=b/4SG6wXrWCEa/22HuqPfFNGWxf/+oq8+ZnfhnwInO3rakzTFwi1tVuxnCP+PB4uliipOR tQLyR7ueXzUtLUl/6hROll46zpnXcA628+vcsjsRS7VhnLCa7JaP0/FitVHhezeJgBdEH8 BudtERkEZBPZNO9r20plvEz6bU3GqatVAH8KC25sVibXmaTiLPEf/MpOEASwHr7BujzD2g 6t3eEW0360R4ZTTPtXKbHxCx86c4bpXWi4xfHEcjHI2l1OQoWYt6WDcBUisWhB2kGv9z+/ 339dArZHxgxGQDN0Orp4l6MEL5eySGqxdrS07X18AE/VbPOE4BlV9ULK+OnUww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hk7KZ5lrHzHCp for ; Mon, 14 Sep 2026 14:47:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 340f5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 14 Sep 2026 14:47:30 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Siva Mahadevan Subject: git: 73d67bc5545b - stable/14 - lib/googletest: also use -O0 for internal tests with GCC List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: siva X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 73d67bc5545b7cf8c4ba6a0cd49430e5f97bbb05 Auto-Submitted: auto-generated Date: Mon, 14 Sep 2026 14:47:30 +0000 Message-Id: <6aa80902.340f5.23178de9@gitrepo.freebsd.org> The branch stable/14 has been updated by siva: URL: https://cgit.FreeBSD.org/src/commit/?id=73d67bc5545b7cf8c4ba6a0cd49430e5f97bbb05 commit 73d67bc5545b7cf8c4ba6a0cd49430e5f97bbb05 Author: Siva Mahadevan AuthorDate: 2026-09-12 18:29:02 +0000 Commit: Siva Mahadevan CommitDate: 2026-09-14 14:32:51 +0000 lib/googletest: also use -O0 for internal tests with GCC This fixes the build with gcc 16's aggressive inlining. Reviewed by: ngie MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D59538 (cherry picked from commit 243bdaff75853606ce477807e87e4fbcc1decfb1) --- lib/googletest/tests/Makefile.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/googletest/tests/Makefile.inc b/lib/googletest/tests/Makefile.inc index 03ee799eb611..af525e54c1a4 100644 --- a/lib/googletest/tests/Makefile.inc +++ b/lib/googletest/tests/Makefile.inc @@ -4,14 +4,14 @@ # rather than installing all of them to /usr/tests/lib/googletest TESTSDIR= ${TESTSBASE}/lib/googletest/${.CURDIR:T} -# Clang's optimizer spends a really long time on these tests at -O2. Changing +# Both GCC's and Clang's optimizer spends a really long time on these tests at -O2. Changing # -O2 to -O1 reduces the -j32 time for lib/googletest/test from 131s to 71s. # Using -O0 further reduces the time to 29s, and also reduces the disk usage # from 144MB (at -O2) / 92MB (at -O1) to 82MB, so we use -O0. # Note: Building without debug info saves about 10-15% of the build time, so we # only enable debug info if DEBUG_FLAGS is not empty (71s -> 64s at -O1 and -j32). -CFLAGS.clang+= -O0 +CFLAGS+= -O0 .if empty(DEBUG_FLAGS) MK_DEBUG_FILES:=no -CFLAGS.clang+= -g0 +CFLAGS+= -g0 .endif