diff options
author | Alexandra Hájková <ahajkova@redhat.com> | 2024-12-03 16:16:46 +0100 |
---|---|---|
committer | Alexandra Hájková <ahajkova@redhat.com> | 2024-12-12 13:08:33 +0100 |
commit | b3010ba05c3a253dfefb35e501ce9d8267a812f9 (patch) | |
tree | 1ff88a18c30f1f5647c666036fdff49f3a5770cb /bfd | |
parent | e3fa5cf492e09dc0e4041263751720c73799a3cd (diff) | |
download | binutils-b3010ba05c3a253dfefb35e501ce9d8267a812f9.zip binutils-b3010ba05c3a253dfefb35e501ce9d8267a812f9.tar.gz binutils-b3010ba05c3a253dfefb35e501ce9d8267a812f9.tar.bz2 |
mangle_style: Add new DWARF5 constants
Update bfd/dwarf2.c with the post DWARF5 language codes which
were added after DWARF5 was finalized. Adding them makes it
possible to return the mangling style for the new language
codes for Ada 2005 Fortran, C++, C and Assembly.
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
Approved-By: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/dwarf2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index e93a331..ceca422 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -1722,12 +1722,17 @@ mangle_style (int lang) { case DW_LANG_Ada83: case DW_LANG_Ada95: + case DW_LANG_Ada2005: + case DW_LANG_Ada2012: return DMGL_GNAT; case DW_LANG_C_plus_plus: case DW_LANG_C_plus_plus_03: case DW_LANG_C_plus_plus_11: case DW_LANG_C_plus_plus_14: + case DW_LANG_C_plus_plus_17: + case DW_LANG_C_plus_plus_20: + case DW_LANG_C_plus_plus_23: return DMGL_GNU_V3; case DW_LANG_Java: @@ -1748,12 +1753,17 @@ mangle_style (int lang) case DW_LANG_Cobol74: case DW_LANG_Cobol85: case DW_LANG_Fortran77: + case DW_LANG_Fortran18: + case DW_LANG_Fortran23: case DW_LANG_Pascal83: case DW_LANG_PLI: case DW_LANG_C99: case DW_LANG_UPC: case DW_LANG_C11: + case DW_LANG_C17: + case DW_LANG_C23: case DW_LANG_Mips_Assembler: + case DW_LANG_Assembly: case DW_LANG_Upc: case DW_LANG_HP_Basic91: case DW_LANG_HP_IMacro: |