mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
[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.
This commit is contained in:
@ -371,7 +371,9 @@ 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_Fortran95)
|
||||
|| this->cu_language_ == elfcpp::DW_LANG_Fortran95
|
||||
|| this->cu_language_ == elfcpp::DW_LANG_Fortran03
|
||||
|| this->cu_language_ == elfcpp::DW_LANG_Fortran08)
|
||||
{
|
||||
gold_warning(_("%s: --gdb-index currently supports "
|
||||
"only C and C++ languages"),
|
||||
|
Reference in New Issue
Block a user