Skip to content

Commit 2d9afef

Browse files
author
Mark Wielaard
committed
[gold] Recognize DWARF5/GCC5 DW_LANG_Fortran03 and DW_LANG_Fortran08.
DWARFv5 defines and GCC5 may output two new DW_LANG constants for the Fortran 2003 and Fortran 2008 standards. Recognize both in gold gdb-index as unsupported. For consistency also add the other new DWARF5/GCC5 language constants in the elfcpp::DW_LANG enum to match include/dwarf2.h. elfcpp/ChangeLog: * dwarf.h (enum DW_LANG): Add DW_LANG_C_plus_plus_11, DW_LANG_C11, DW_LANG_C_plus_plus_14, DW_LANG_Fortran03 and DW_LANG_Fortran08 from ../include/dwarf2.h. gold/ChangeLog: * gdb-index.cc (Gdb_index_info_reader::visit_top_die): Recognize DW_LANG_Fortran03 and DW_LANG_Fortran08.
1 parent e9c1bda commit 2d9afef

4 files changed

Lines changed: 20 additions & 1 deletion

File tree

‎elfcpp/ChangeLog‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2015-02-09 Mark Wielaard <mjw@redhat.com>
2+
3+
* dwarf.h (enum DW_LANG): Add DW_LANG_C_plus_plus_11,
4+
DW_LANG_C11, DW_LANG_C_plus_plus_14, DW_LANG_Fortran03 and
5+
DW_LANG_Fortran08 from ../include/dwarf2.h.
6+
17
2015-01-22 Han Shen <shenhan@google.com>
28

39
* arm.h (R_ARM_IRELATIVE): New dynamic relocation.

‎elfcpp/dwarf.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ enum DW_LANG
205205
DW_LANG_Python = 0x0014,
206206
// DWARF 5.
207207
DW_LANG_Go = 0x0016,
208+
DW_LANG_C_plus_plus_11 = 0x001a,
209+
DW_LANG_C11 = 0x001d,
210+
DW_LANG_C_plus_plus_14 = 0x0021,
211+
DW_LANG_Fortran03 = 0x0022,
212+
DW_LANG_Fortran08 = 0x0023,
213+
208214
DW_LANG_lo_user = 0x8000, // Implementation-defined range start.
209215
DW_LANG_hi_user = 0xffff, // Implementation-defined range start.
210216
// MIPS.

‎gold/ChangeLog‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2015-02-09 Mark Wielaard <mjw@redhat.com>
2+
3+
* gdb-index.cc (Gdb_index_info_reader::visit_top_die): Recognize
4+
DW_LANG_Fortran03 and DW_LANG_Fortran08.
5+
16
2015-02-16 Cary Coutant <ccoutant@google.com>
27

38
PR gold/13577

‎gold/gdb-index.cc‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ Gdb_index_info_reader::visit_top_die(Dwarf_die* die)
371371
|| this->cu_language_ == elfcpp::DW_LANG_Fortran90
372372
|| this->cu_language_ == elfcpp::DW_LANG_Java
373373
|| this->cu_language_ == elfcpp::DW_LANG_Ada95
374-
|| this->cu_language_ == elfcpp::DW_LANG_Fortran95)
374+
|| this->cu_language_ == elfcpp::DW_LANG_Fortran95
375+
|| this->cu_language_ == elfcpp::DW_LANG_Fortran03
376+
|| this->cu_language_ == elfcpp::DW_LANG_Fortran08)
375377
{
376378
gold_warning(_("%s: --gdb-index currently supports "
377379
"only C and C++ languages"),

0 commit comments

Comments
 (0)