From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id WNWkHpI5fmeE9QYAWB0awg (envelope-from ) for ; Wed, 08 Jan 2025 03:38:42 -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=SpIbc0hO; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 78F3E1E0C0; Wed, 8 Jan 2025 03:38:42 -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 078401E091 for ; Wed, 8 Jan 2025 03:38:42 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A755C3858433 for ; Wed, 8 Jan 2025 08:38:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A755C3858433 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1736325521; bh=buaR2HnZsJXyaYEEVzuKbrxGF+ehztuxpCleW2XnjKw=; h=Date:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=SpIbc0hOhTaWVsMFFuS4AB0rQSpcEcUdC8yMIk6MMrcw+p8sP/j9lRk6p8UsumoCk 5rrWT2jrkMDK7/X0/jYNENARAvyYWbb/H0OH0kY7sZQKGgPZBL+BupnGWou2kJn4Wy tgwyHSrnu5/wSm2llRryb0jWdag8NIpMYo/DIaOg= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id D9B2F385840D for ; Wed, 8 Jan 2025 08:37:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D9B2F385840D ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D9B2F385840D ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736325465; cv=none; b=SfpjOOn/VWbObLFJE35xwn2CYSnP/Ceur9Jb2+PZkGGv810FHRp/No6iK9z0KR7diXYR/hhnbb+qi1Ng9xrNxIfrvzNejUoT1sEK+rxcEH+yPeS7rzpTbu/lQwOj4gYr8HarG/FI6KIA+Jc7QO/sC/hxD2fphVvCmXQHRE1xgFs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736325465; c=relaxed/simple; bh=E3C1WyG8xz8LMziPl3lR5iJrtG3rlgWrxR5zdM0zjtg=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=CTicArg54QX80QPY3IGuxtkYrT8KsRaSF6InbU8rWtV16JYopAbHPaEM044ACsMpTrr1s8a2U+g4l7B6oL6vVACnM33P82Z/ElKz5wYDjKQ0mRqPsDgdSTt2wwAd7aUEwcnrLGoiNukkducO7zMkoRERqyiEtuIRY2EFFR5q90M= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D9B2F385840D Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-303-qvcodCs6Pd2HYie5CyKIXA-1; Wed, 08 Jan 2025 03:37:42 -0500 X-MC-Unique: qvcodCs6Pd2HYie5CyKIXA-1 X-Mimecast-MFC-AGG-ID: qvcodCs6Pd2HYie5CyKIXA Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 499CE1956054; Wed, 8 Jan 2025 08:37:40 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.45.224.5]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 136A2300018D; Wed, 8 Jan 2025 08:37:38 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 5088bZQL3352821 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 8 Jan 2025 09:37:35 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 5088bZ4h3352820; Wed, 8 Jan 2025 09:37:35 +0100 Date: Wed, 8 Jan 2025 09:37:34 +0100 To: Eric Botcazou Cc: Jason Merrill , Richard Biener , 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} Message-ID: References: <2160636.9o76ZdvQCi@fomalhaut> MIME-Version: 1.0 In-Reply-To: <2160636.9o76ZdvQCi@fomalhaut> X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: cTZQKTg0wr1sApUiI5acQ-CiIKhCMwdKqxRSW5_0CbQ_1736325461 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: Jakub Jelinek via Gdb Reply-To: Jakub Jelinek Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" 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. Jakub