public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: "Alexandra Hájková" <ahajkova@redhat.com>
Cc: binutils@sourceware.org
Subject: Re: [PATCH 2/2] elfcpp/dwarf.h: Add new DWARF5 constants to DW_LANG enum
Date: Tue, 10 Dec 2024 13:54:08 +0100	[thread overview]
Message-ID: <bbc6587d-4c18-4a3f-bfa0-294e27e25a8d@suse.com> (raw)
In-Reply-To: <20241210122332.751493-2-ahajkova@redhat.com>

On 10.12.2024 13:23, Alexandra Hájková wrote:
> --- a/elfcpp/dwarf.h
> +++ b/elfcpp/dwarf.h
> @@ -247,6 +247,15 @@ enum DW_LANG
>    DW_LANG_C_plus_plus_14 = 0x0021,
>    DW_LANG_Fortran03 = 0x0022,
>    DW_LANG_Fortran08 = 0x0023,
> +  DW_LANG_C_plus_plus_20 = 0x002b,
> +  DW_LANG_C17 = 0x002c,
> +  DW_LANG_Ada2005 = 0x002e,
> +  DW_LANG_Ada2012 = 0x002f,
> +  DW_LANG_Assembly = 0x0031,
> +  DW_LANG_Fortran18 = 0x002d,

Why out of order?

> +  DW_LANG_C_plus_plus_23 = 0x003a,
> +  DW_LANG_C23 = 0x003e,
> +  DW_LANG_Fortran23 = 0x003fi,

You're also omitting quite a few. Why? Many certainly would fit ...

> --- a/gold/gdb-index.cc
> +++ b/gold/gdb-index.cc
> @@ -371,9 +371,13 @@ Gdb_index_info_reader::visit_top_die(Dwarf_die* die)
>  		|| this->cu_language_ == elfcpp::DW_LANG_Fortran90
>  		|| this->cu_language_ == elfcpp::DW_LANG_Java
>  		|| this->cu_language_ == elfcpp::DW_LANG_Ada95
> +		|| this->cu_language_ == elfcpp::DW_LANG_Ada2005
> +		|| this->cu_language_ == elfcpp::DW_LANG_Ada2012
>  		|| this->cu_language_ == elfcpp::DW_LANG_Fortran95
>  		|| this->cu_language_ == elfcpp::DW_LANG_Fortran03
> -		|| this->cu_language_ == elfcpp::DW_LANG_Fortran08)
> +		|| this->cu_language_ == elfcpp::DW_LANG_Fortran08
> +		|| this->cu_language_ == elfcpp::DW_LANG_Fortran18
> +		|| this->cu_language_ == elfcpp::DW_LANG_Fortran23)
>  	      {
>  		gold_warning(_("%s: --gdb-index currently supports "
>  			       "only C and C++ languages"),

... the purpose here.

Jan

  reply	other threads:[~2024-12-10 12:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-10 12:23 [PATCH 1/2] display_lang: Add descriptions for new DWARF5 constants Alexandra Hájková
2024-12-10 12:23 ` [PATCH 2/2] elfcpp/dwarf.h: Add new DWARF5 constants to DW_LANG enum Alexandra Hájková
2024-12-10 12:54   ` Jan Beulich [this message]
2024-12-10 20:38   ` Hans-Peter Nilsson
2024-12-10 12:51 ` [PATCH 1/2] display_lang: Add descriptions for new DWARF5 constants Jan Beulich
2024-12-10 12:55   ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bbc6587d-4c18-4a3f-bfa0-294e27e25a8d@suse.com \
    --to=jbeulich@suse.com \
    --cc=ahajkova@redhat.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).