From owner-dev-commits-src-main@freebsd.org Thu Dec 31 20:56:59 2020 Return-Path: Delivered-To: dev-commits-src-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2D8494CF752; Thu, 31 Dec 2020 20:56:59 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D6L7H0p0Wz3qvG; Thu, 31 Dec 2020 20:56:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0E7871709C; Thu, 31 Dec 2020 20:56:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 0BVKuwfW061610; Thu, 31 Dec 2020 20:56:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 0BVKuw0X061609; Thu, 31 Dec 2020 20:56:58 GMT (envelope-from git) Date: Thu, 31 Dec 2020 20:56:58 GMT Message-Id: <202012312056.0BVKuw0X061609@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 1e54857bd9f5 - main - Stop defaulting to DWRAF2 in kernel compilation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1e54857bd9f5791ec1edfc5c21edb374519e9061 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for the main branch of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Dec 2020 20:56:59 -0000 The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=1e54857bd9f5791ec1edfc5c21edb374519e9061 commit 1e54857bd9f5791ec1edfc5c21edb374519e9061 Author: Ed Maste AuthorDate: 2020-12-31 19:31:12 +0000 Commit: Ed Maste CommitDate: 2020-12-31 20:56:18 +0000 Stop defaulting to DWRAF2 in kernel compilation After the removal of obsolete GDB 6.1.1 from the base system in 1c0ea326aa6d we no longer need to downgrade to DWARF2 debug info. We will need to ensure that our tools (e.g. ctfconvert) handle DWARF5 prior to it becoming the default in the Clang and GCC versions we use. Reported by: jhb Relnotes: Yes Sponsored by: The FreeBSD Foundation --- sys/conf/kern.mk | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index e897249c32e6..8f0163a3d0a0 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -245,17 +245,6 @@ CFLAGS+= -ftrivial-auto-var-init=pattern .endif .endif -# -# Add -gdwarf-2 when compiling -g. The default starting in clang v3.4 -# and gcc 4.8 is to generate DWARF version 4. However, our tools don't -# cope well with DWARF 4, so force it to genereate DWARF2, which they -# understand. Do this unconditionally as it is harmless when not needed, -# but critical for these newer versions. -# -.if ${CFLAGS:M-g} != "" && ${CFLAGS:M-gdwarf*} == "" -CFLAGS+= -gdwarf-2 -.endif - CFLAGS+= ${CWARNFLAGS:M*} ${CWARNFLAGS.${.IMPSRC:T}} CFLAGS+= ${CWARNFLAGS.${COMPILER_TYPE}} CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} ${CFLAGS.${.IMPSRC:T}}