[PATCH] D138597: DebugInfo: Add/support new DW_LANG codes for recent C and C++ versions

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 29 11:13:45 PST 2022


probinson added a comment.

In D138597#3957356 <https://reviews.llvm.org/D138597#3957356>, @dblaikie wrote:

> In D138597#3954269 <https://reviews.llvm.org/D138597#3954269>, @probinson wrote:
>
>> The codes have been allocated but AFAICT the website doesn't have the new codes listed (I looked at http://wiki.dwarfstd.org/index.php/DWARF_Language_Support which doesn't even have all the v5 codes yet).
>
> I think they're up here: https://dwarfstd.org/Languages.php (linked from the dwarfstd.org front page "DWARF V5 Language Codes and Requests")

Oh, thanks.  I had it in my head they were on the wiki, but being on the main site is better.

>> @aprantl do you have an opinion on this?  I tend to lean to the pedantic side on this kind of thing, but I'm persuadable.
>
> Yeah, I've certainly got mixed feelings - maybe we don't pick up these after-release language codes, and instead produce the new language encoding (which separates language from version) as an extension, alongside the old/in-the-dwarfv5-spec-document codes? So that a DWARFv5 consumer that contains only the DWARFv5-spec-document functionality and not the new codes, and a newer consumer can read the new parts.

Except the new LNAME codes aren't 1-1 with the old codes and aren't published anywhere. Well, except in the issue resolution, I guess, but that's not definitive (subject to change until DWARF 6 is published).  I'm not sure which way to go here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138597/new/

https://reviews.llvm.org/D138597



More information about the llvm-commits mailing list