diff options
author | Mark Wielaard <mjw@redhat.com> | 2015-02-10 00:02:34 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2015-02-17 08:08:24 +0100 |
commit | 2d9afefe223de983d6e86b5de9da0e5650057ac9 (patch) | |
tree | 65317d0175a7b21ff5d3da8b52b1b3c8516575c3 /gold | |
parent | e9c1bdad269c0c3352eebcc9481ed65144001b0b (diff) | |
download | gdb-2d9afefe223de983d6e86b5de9da0e5650057ac9.zip gdb-2d9afefe223de983d6e86b5de9da0e5650057ac9.tar.gz gdb-2d9afefe223de983d6e86b5de9da0e5650057ac9.tar.bz2 |
[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.
Diffstat (limited to 'gold')
-rw-r--r-- | gold/ChangeLog | 5 | ||||
-rw-r--r-- | gold/gdb-index.cc | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 3eed17a..f83c652 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2015-02-09 Mark Wielaard <mjw@redhat.com> + + * gdb-index.cc (Gdb_index_info_reader::visit_top_die): Recognize + DW_LANG_Fortran03 and DW_LANG_Fortran08. + 2015-02-16 Cary Coutant <ccoutant@google.com> PR gold/13577 diff --git a/gold/gdb-index.cc b/gold/gdb-index.cc index 1a41820..666ee70 100644 --- a/gold/gdb-index.cc +++ b/gold/gdb-index.cc @@ -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"), |