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