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
(in GCC case unless using -gdwarf-strict which prohibits using codes from
newer DWARF versions).
We aren't adding new DW_LANG_ codes to DWARF 4, 3, 2 either.

        Jakub

-- 
Dwarf-discuss mailing list
Dwarf-discuss@lists.dwarfstd.org
https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss

Reply via email to