Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp932919rwe; Wed, 31 Aug 2022 13:49:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR4xOSzdBi952kFWmHSZLz5QKhlKP2G2uu3lP425zXVDKiP/WoCMzueYdrKaBin0KnDAL+qB X-Received: by 2002:a50:ed90:0:b0:448:b9db:df81 with SMTP id h16-20020a50ed90000000b00448b9dbdf81mr8588210edr.89.1661978948214; Wed, 31 Aug 2022 13:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661978948; cv=none; d=google.com; s=arc-20160816; b=YFMnAQtYho/enHIy95qXaCYC55FM/4ajx884dx2jZAvKcSTFadZ6TcILkyt8aZZ3w/ eNixWj976T+ugNj9qLPju+woyiJFKGPiFU5agY4vIQUTSzooX42mAirzGM6ruq8VVe/B qvsvyY3bPsc91q5x+DHeutjp3UcVXzYOQru7t8JHTlKBpUYP2XCvdLvAHrNjeEl8cpQ8 ehg1Lgry/lh5xr1slD+EYzQQKjjrQoAoNBSP/Xd3X3qJ1rb+IuV8m1SxPKE8bgTFJF53 2Lt0jd+O8GKritrDq9P1O4ndD5rK3NobVGJjT2+t9+6diY06L+2/MeHmR5vcu2jJvw2F fg3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=INVjo9SYhZQHvWSaCqTiEdyrJk76ODXfdpdfJYkkFew=; b=WaURXC0g9PrXly1CuOP6Ucw5dKJ9daw5B2Jn4rWx7CVITzAL5y07MV2hiSqMeSjnOx kRKXjJfKw7L+6qgvwhAjDXhJ8YQtmYL/w8RndAzczUIgbKMW1Q0i0tBDJNnT9OiQ4V95 8cmqGLmCEUUsRgnM350Vb7iwbe1xY+OVxNA4kzI94mLIucvryHOlKs6SMaeu5Ou2+dRW Oxyz94oRxuO3XGo0mJUkjhWujaFhhemK4TDXRuC0SRqbBh5NwiYp9fU/fLlJbSz0DJkL JOSNj82C1ts7QCbXa1wwmVosnBGHYvIAhxYLNgiWkBTXiKAZdQSX4G2zBYcYYZAZBatN uRSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CA23Eldv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a170906184900b007304f4611e6si10340594eje.719.2022.08.31.13.48.41; Wed, 31 Aug 2022 13:49:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CA23Eldv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231924AbiHaUXK (ORCPT + 99 others); Wed, 31 Aug 2022 16:23:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231136AbiHaUXI (ORCPT ); Wed, 31 Aug 2022 16:23:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BF47D99C3; Wed, 31 Aug 2022 13:23:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 76521B82301; Wed, 31 Aug 2022 20:23:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 563B7C433D6; Wed, 31 Aug 2022 20:23:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661977383; bh=5uN7nzPwfI/1N2ti9Lp5VrCgxZVrN89dYdqpAIQOF6s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CA23Eldvy/3ULld1WpL1lAnDzzQD1phusjI7CK4wIZvslO1aL8OOfNQ69a8J2Q57A COq0zBpdM2bF/6wmcWgj2SMyQ+AoP83IR8EQxGFb2mtdhwuAK1YnBu2Ye7LIElOsrq Lb/E943++QUC9yMiSZQoPWJalkuufXONeR4YG/3ddH0k6h2fmi6eE6k32Qf2wnpeRx o1o/Ff0E0LUCfcULCF88iJ509Gy964IRaXir+h1Mf/GjC5GQSPhBSDyUJk5/s1CSpx weomMrDW+vvhYUhBxrNS7l6Do6OICJRQKOVKucSNDd3DTvYe0lU+zAl/6DOoEyme3w 1js6ugKD51U9A== Date: Wed, 31 Aug 2022 13:23:00 -0700 From: Nathan Chancellor To: Nick Desaulniers Cc: Masahiro Yamada , Michal Marek , Tom Rix , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, x86@kernel.org, Dmitrii Bundin , Fangrui Song , Alexey Alexandrov , Bill Wendling , Greg Thelen , Andi Kleen Subject: Re: [PATCH v2 5/5] Makefile.debug: set -g unconditional on CONFIG_DEBUG_INFO_SPLIT Message-ID: References: <20220831184408.2778264-1-ndesaulniers@google.com> <20220831184408.2778264-6-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220831184408.2778264-6-ndesaulniers@google.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 31, 2022 at 11:44:08AM -0700, Nick Desaulniers wrote: > Dmitrii, Fangrui, and Mashahiro note: > > Before GCC 11 and Clang 12 -gsplit-dwarf implicitly uses -g2. > > Fix CONFIG_DEBUG_INFO_SPLIT for gcc-11+ & clang-12+ which now need -g > specified in order for -gsplit-dwarf to work at all. > > -gsplit-dwarf has been mutually exclusive with -g since support for > CONFIG_DEBUG_INFO_SPLIT was introduced in > commit 866ced950bcd ("kbuild: Support split debug info v4") > I don't think it ever needed to be. > > Link: https://lore.kernel.org/lkml/20220815013317.26121-1-dmitrii.bundin.a@gmail.com/ > Link: https://lore.kernel.org/lkml/CAK7LNARPAmsJD5XKAw7m_X2g7Fi-CAAsWDQiP7+ANBjkg7R7ng@mail.gmail.com/ > Link: https://reviews.llvm.org/D80391 > Cc: Andi Kleen > Reported-by: Dmitrii Bundin > Reported-by: Fangrui Song > Reported-by: Masahiro Yamada > Suggested-by: Dmitrii Bundin > Signed-off-by: Nick Desaulniers Reviewed-by: Nathan Chancellor > --- > Changes v1 -> v2: > * Add reference to 866ced950bcd, cc Andi, in commit message. > > scripts/Makefile.debug | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/scripts/Makefile.debug b/scripts/Makefile.debug > index 46e88f0ca998..b6eb532af3cc 100644 > --- a/scripts/Makefile.debug > +++ b/scripts/Makefile.debug > @@ -1,10 +1,8 @@ > -DEBUG_CFLAGS := > +DEBUG_CFLAGS := -g > +KBUILD_AFLAGS += -g > > ifdef CONFIG_DEBUG_INFO_SPLIT > DEBUG_CFLAGS += -gsplit-dwarf > -else > -DEBUG_CFLAGS += -g > -KBUILD_AFLAGS += -g > endif > > ifdef CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT > -- > 2.37.2.672.g94769d06f0-goog >