Recognize new DWARF5/GCC5 DW_LANG Fortran 2003 and Fortran 2008 standards.
authorMark Wielaard <mjw@redhat.com>
Mon, 9 Feb 2015 22:14:38 +0000 (23:14 +0100)
committerMark Wielaard <mjw@redhat.com>
Tue, 10 Feb 2015 09:15:04 +0000 (10:15 +0100)
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

gdb/ChangeLog
gdb/dwarf2read.c

index be32f3ef1bb747fa16bbeab20f46a6c99ea34986..305b4b2997ae1ce3a5a47823b090f30e7c5e2dbe 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-09  Mark Wielaard  <mjw@redhat.com>
+
+       * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
+       DW_LANG_Fortran08 as language_fortran.
+
 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
 
        PR remote/17946
index f7b9b906c2463766c0166e50af9202740313871f..db35e7e8f783e7a2130fb3ed2c382259b211634d 100644 (file)
@@ -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: