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