Agreed. I've added this as Issue 241120.1 and assigned DW_LANG_C23 = 0x3e https://dwarfstd.org/issues/241120.1.html
-cary On Wed, Nov 20, 2024 at 10:19 AM David Blaikie via Dwarf-discuss < dwarf-discuss@lists.dwarfstd.org> wrote: > +1. Best not to encourage use of things we haven't finished standardizing > - though we made an explicit carveout for the language codes themselves. > > On Wed, Nov 20, 2024 at 9:49 AM pogo 59 via Dwarf-discuss < > dwarf-discuss@lists.dwarfstd.org> wrote: > >> Sorry, meant to reply-all. >> >> ---------- Forwarded message --------- >> From: pogo 59 <pogo.w...@gmail.com> >> Date: Wed, Nov 20, 2024 at 12:47 PM >> Subject: Re: [Dwarf-discuss] defaulting to C23 in GCC >> To: Mark Wielaard <m...@klomp.org> >> >> >> I think it's reasonable to add codes such as this at least until DWARF v6 >> is published. It's just a list on a web page, right? Like the language >> codes. >> >> On Wed, Nov 20, 2024 at 10:59 AM Mark Wielaard via Dwarf-discuss < >> dwarf-discuss@lists.dwarfstd.org> wrote: >> >>> Hi Jakub, >>> >>> On Wed, 2024-11-20 at 16:24 +0100, Jakub Jelinek via Dwarf-discuss >>> wrote: >>> > On Wed, Nov 20, 2024 at 03:09:02PM +0100, Alexandra Petlanova Hajkova >>> via Dwarf-discuss wrote: >>> > > GCC15 (to be released in April/May2025) will default to C23 instead >>> of the >>> > > C17. >>> > > There is a new way to describe the language standard version used >>> proposed >>> > > for DWARF6 but there is nothing like that for DWARF5 (or earlier). >>> > > DWARF_LANG_C23 >>> > > needs to be added to DWARF5. >>> > >>> > Why? I think we don't really want to keep adding new DW_LANG_ codes >>> > to the DWARF 5 set forever. >>> > The compiler can emit all of >>> > DW_AT_language DW_LANG_C17 >>> > DW_AT_language_name DW_LNAME_C >>> > DW_AT_language_version 202311 >>> >>> Note that a new DWARF5 languge code for DW_LANG_C_plus_plus_23 was >>> added: https://dwarfstd.org/issues/240616.1.html and several others >>> were added just last month https://dwarfstd.org/languages.html >>> >>> But you are right we could just adopt the proposed DWARF6 >>> DW_AT_language_name/version attributes, which is more flexible. >>> Question is if we think they are already "stable". >>> https://dwarfstd.org/languages-v6.html says "The information on this >>> page is part of the Draft of DWARF Version 6 and is subject to change." >>> >>> Cheers, >>> >>> Mark >>> -- >>> Dwarf-discuss mailing list >>> Dwarf-discuss@lists.dwarfstd.org >>> https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss >>> >> -- >> Dwarf-discuss mailing list >> Dwarf-discuss@lists.dwarfstd.org >> https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss >> > -- > Dwarf-discuss mailing list > Dwarf-discuss@lists.dwarfstd.org > https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss >
-- Dwarf-discuss mailing list Dwarf-discuss@lists.dwarfstd.org https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss