diff options
author | Mark Wielaard <mjw@redhat.com> | 2015-02-09 23:14:38 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2015-02-10 10:15:04 +0100 |
commit | f7de9aab902f68a79e83954d2645daf90f9eae33 (patch) | |
tree | b8b711d98d76b3bfa1de3733942d1d7ed580d3e5 /gdb/dwarf2read.c | |
parent | 5a19504458d7a4113ef91875a447f4e841df7598 (diff) | |
download | gdb-f7de9aab902f68a79e83954d2645daf90f9eae33.zip gdb-f7de9aab902f68a79e83954d2645daf90f9eae33.tar.gz gdb-f7de9aab902f68a79e83954d2645daf90f9eae33.tar.bz2 |
Recognize new DWARF5/GCC5 DW_LANG Fortran 2003 and Fortran 2008 standards.
DWARFv5 defines and GCC5 may output two new DW_LANG constants for the
Fortran 2003 and Fortran 2008 standards. Recognize both as variants of
language_fortran.
gdb/ChangeLog:
* dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
DW_LANG_Fortran08 as language_fortran.
http://dwarfstd.org/ShowIssue.php?issue=141121.1
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index f7b9b90..db35e7e 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -16925,6 +16925,8 @@ set_cu_language (unsigned int lang, struct dwarf2_cu *cu) case DW_LANG_Fortran77: case DW_LANG_Fortran90: case DW_LANG_Fortran95: + case DW_LANG_Fortran03: + case DW_LANG_Fortran08: cu->language = language_fortran; break; case DW_LANG_Go: |