[PATCH] mangle_style: Add new DWARF5 constants

Jan Beulich jbeulich@suse.com
Tue Dec 10 12:50:31 GMT 2024


On 10.12.2024 11:21, Alexandra Hájková wrote:
> Update bfd/dwarf2.c with the new DWARF5 language codes to

In the earlier "include/dwarf2: sync with gcc" it was said that these
are post-Dwarf5 constants. Which one is it?

> make it possible to return the mangling style for the new
> language codes for Ada 2005 and 20015, Fortran 18 and 23,

Nit: One 0 too many as it seems. Plus ...

> C++ 20 and 23, C 17 and 23 and Assembly.
> 
> Reviewed-By: Andrew Burgess <aburgess@redhat.com>
> ---
>  bfd/dwarf2.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
> index 151ed0237ca..46f82d4c0f4 100644
> --- a/bfd/dwarf2.c
> +++ b/bfd/dwarf2.c
> @@ -1725,12 +1725,17 @@ mangle_style (int lang)
>      {
>      case DW_LANG_Ada83:
>      case DW_LANG_Ada95:
> +    case DW_LANG_Ada2005:
> +    case DW_LANG_Ada2012:
>        return DMGL_GNAT;

... the constant itself says it's 2012, not 2015.

Jan


More information about the Binutils mailing list