From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UJhdCqBBfmcA/QYAWB0awg (envelope-from ) for ; Wed, 08 Jan 2025 04:13:04 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=qyM5NKdt; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2667B1E0C0; Wed, 8 Jan 2025 04:13:04 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=unavailable autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id AD9E51E091 for ; Wed, 8 Jan 2025 04:13:03 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5461E3858C60 for ; Wed, 8 Jan 2025 09:13:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5461E3858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1736327583; bh=D2rgNJU5P1KyT+D7xxRSW/YdOBOMyNLhV61RUFu04ds=; h=Date:To:cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=qyM5NKdtvajh8miS1X3DohY+ZSvEVkJa9lEC+x9TTXr9+keZjqdAe8OO0a1AHSyBa 82VbMjzTNYPW0hbf0ojps4DWCpLVRKw1XBFpPpm5tqz0u4o2iI1TZMCxMqou72oZnI 5iMotl6XUI1FVfF3JcVCK/m4aoJk6qg/GK++tIhg= Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by sourceware.org (Postfix) with ESMTPS id 868953858D28 for ; Wed, 8 Jan 2025 09:09:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 868953858D28 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 868953858D28 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736327365; cv=none; b=q2v4n8g7NGIu1jzi/GU8wkX9b71UllEzKue2AI/DU/+PBk0+XTOA7cYw04J7PnJbmLmVFTiYVcfOzUm33UatsxW+yzvbzERfdgnZj6GL3XJB0qOvW6PlDSZ1YG2xGaHxyjJDeHT1IxL7yN5W+g3HSTLkMZVCFcGokIY4D/aY/to= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736327365; c=relaxed/simple; bh=1A0d6NdXWeoYh1pHVqis1oXPOz63XnH2S9YVOlBpOqw=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date: From:To:Subject:Message-ID:MIME-Version; b=FOGNIacen6wukh/iIvEvWuBldj/lP6/UxvzLocCcVEN3xrwSwXkgJVLJxAIq/OQdSF4Ktwh59DtFb508gpcxiitOfT5UvtcrCtxotNULJKADeLQ7Z6wVfg9UO6zs4qJXhPh6CClU4ZomsKid+Np74pvGneHRpURD3OAIg1NhYI0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 868953858D28 Received: from murzim.nue2.suse.org (unknown [10.168.4.243]) (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) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 781922110A; Wed, 8 Jan 2025 09:09:24 +0000 (UTC) Date: Wed, 8 Jan 2025 10:09:24 +0100 (CET) To: Jakub Jelinek cc: Eric Botcazou , Jason Merrill , Mark Wielaard , gcc-patches@gcc.gnu.org, Alexandra Petlanova Hajkova , gdb@sourceware.org, fortran@gcc.gnu.org Subject: Re: [PATCH] dwarf2out: Emit DWARF 6 DW_AT_language_{name,version} In-Reply-To: Message-ID: <4904089o-6986-9585-o15p-3pr19n506sqo@fhfr.qr> References: <2160636.9o76ZdvQCi@fomalhaut> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[99.98%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_SEVEN(0.00)[8]; FROM_HAS_DN(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[dwarf2out.cc:url, gnu.org:url, dwarfstd.org:url] X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Richard Biener via Gdb Reply-To: Richard Biener Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Wed, 8 Jan 2025, Jakub Jelinek wrote: > On Wed, Jan 08, 2025 at 09:14:59AM +0100, Eric Botcazou wrote: > > > So, this patch is an alternative to the > > > https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669671.html > > > patch, which had the major problem that it required changing all the > > > DWARF consumers to be able to debug C17 or later or C++17 or later > > > sources. > > > > Do you plan to salvage the non-obsoleted parts of the above change? > > No. The switches on DW_AT_language value are a GCC internal thing, > if we never generate say the post-DWARF5 DW_LANG_C_plus_plus_23, > we don't need to handle it in the switch. > > Though, Ada and Fortran could have a similar change to the C/C++ > one, i.e. also add DW_AT_language_{name,version} for newer Ada and Fortran > versions, say DW_LNAME_Ada and then dunno whether 2005, 2012 and 2022 > or 2007, 2012 and 2023, in https://dwarfstd.org/languages-v6.html > the versioning scheme for Ada (as well as Fortran) is YYYY. > Similarly DW_LNAME_Fortran 2018 and 2023. > > The reason I haven't done it myself is that the Ada FE doesn't tell > Ada version at all - there is just "GNU Ada" and dwarf2out.cc right now > implies it is Ada 95 for DWARF3 and Ada 83 otherwise. > And in the Fortran case, while the FE provides a version, it only > does so for Fortran 2003 and 2008 (and just "GNU Fortran" implies Fortran 90 > in dwarf2out). So, no marking of Fortran 2018 or Fortran 2023. Btw, with DWARF only we now have the opportunity to add langhooks that directly create DWARF DIEs or attributes (for early debug). Richard.