From nobody Sat Sep 12 18:29:27 2026 X-Original-To: dev-commits-src-all@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 4hj0Lj1bZ7z6sXqj for ; Sat, 12 Sep 2026 18:29:33 +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 4hj0Lh6xJ6z4vRG for ; Sat, 12 Sep 2026 18:29:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789237773; 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=3p5pAFw3lg10Wdfo7wRLXcghws/VQRADYmY5N2tF3dM=; b=SynhJzQLfCQztL8vgoMWpHsY7v0pSryHcKr6wwrtURPzYIworU+ouBDG5/dhZg5fEUjPU7 Z5z5mylWr1XWHU1PR/0sepj1jBBWNRkWqo4XaVfUsLUS2P1cG5u096PQ+LoW8x6UDYvv5e JkoHk+SpE4ZkxHFICmPnetzQy2edvkalJoyiWocPZsu8+1AbCpGEA31SKQx6DaiEHxkL+p /3/V0vcYgbtyn2vkdWGPeLbogS3Co7zGG59l4TEPvRUmgeCfCrQPHo0AmTNJrtNsi8POiO bms9h/y6cAKqbgwooHv+lLETLBg2HKRiFHTUbU+Cmi7XYjxJcrX/YzarF4Ba9w== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789237773; b=GDcizFSueLuct8RxaS6t5SobqBoQNXlVA//MuWRKj3RiJBKZf9vyDJyXTfatIrSNPSBb3v yrYj81lKb223KBoJRcKDuj5XSmhz/jiAz/Q31QmrkXbVz4eUXkSKjNrAkiE0dB++bHbhum hcSsT7Hc/lHuYg8NHV78j+/1lqpISaWa9UvniginLmjAaSkJPY7efFD8J66BCucG6ojeid aBCu1/9c9H55ZAybixKj/mv8DhsxvZl+7I1Dg1+F/XSrDHMxoDnKa5a5mYyY6A9+BtoEGf E+W8GPTvjh1Mu+02yHSJPq+hXGe702O0bBFTubEVtTdkqwty9Hohv07ds/PRSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789237773; 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=3p5pAFw3lg10Wdfo7wRLXcghws/VQRADYmY5N2tF3dM=; b=NXFhtrGU2G4gs0m04LWfeOVBBaktK7eSZ/8LRZnOmIIcmuP4IkHpnjbkC3eVLaPVcVTZe0 kkXmZIZbJ7/9cS4M+Fo5Q3zeB6vxgv+RBlS6kfxE1CbpyV/WSbvm0DXdBjaEp9T55TiOij PzHuDaYZAsueppc5+xfuXrm4QVyhUUa6qJJdLWMeOihLrbivHRaRQPn9FAHSRbAL0CRuWv 5qP/6n+xCuGO7aD9nEOur9rnsvki2OJNhewjmrkSbgOLCnQ4hElMYV3/F8EPBysOPoOfdn mpgPyHJA+fUchaxuctYsG81dcseaRqxzwBhpJISOwySCr75EdlHm9tTLtzZqMw== 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 4hj0Lh5lHGz18F6 for ; Sat, 12 Sep 2026 18:29:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 465ab by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 12 Sep 2026 18:29:27 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Siva Mahadevan Subject: git: 243bdaff7585 - main - lib/googletest: also use -O0 for internal tests with GCC List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 243bdaff75853606ce477807e87e4fbcc1decfb1 Auto-Submitted: auto-generated Date: Sat, 12 Sep 2026 18:29:27 +0000 Message-Id: <6aa59a07.465ab.75f780e2@gitrepo.freebsd.org> The branch main has been updated by siva: URL: https://cgit.FreeBSD.org/src/commit/?id=243bdaff75853606ce477807e87e4fbcc1decfb1 commit 243bdaff75853606ce477807e87e4fbcc1decfb1 Author: Siva Mahadevan AuthorDate: 2026-09-12 18:29:02 +0000 Commit: Siva Mahadevan CommitDate: 2026-09-12 18:29:18 +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 --- 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 8d19e1fafdea..d697507c9e5e 100644 --- a/lib/googletest/tests/Makefile.inc +++ b/lib/googletest/tests/Makefile.inc @@ -5,14 +5,14 @@ TESTSDIR= ${TESTSBASE}/lib/googletest/${.CURDIR:T} PACKAGE= tests -# 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