This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix detection of gfortran compilers.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=285866651cd0d404087438668012289d278e4179

commit 285866651cd0d404087438668012289d278e4179
Author: Bernhard Heckel <bernhard.heckel@intel.com>
Date:   Wed Mar 2 15:30:05 2016 +0100

    Fix detection of gfortran compilers.
    
    Newer gfortran compilers changed naming convention in DW_AT_producer tag.
    For example "GNU Fortran 4.6.3" vs "GNU Fortran2008 5.3.0"
    
    2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
    
    gdb/Changelog:
    
         * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.

Diff:
---
 gdb/ChangeLog    | 4 ++++
 gdb/dwarf2read.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 75c9285..6538a4a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2016-03-02  Bernhard Heckel  <bernhard.heckel@intel.com>
+
+	* dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
+
 2016-03-01  Andreas Arnez  <arnez@linux.vnet.ibm.com>
 
 	* s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 1020c12..dcd49e3 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -18506,7 +18506,7 @@ new_symbol_full (struct die_info *die, struct type *type, struct dwarf2_cu *cu,
 		  if (cu->language == language_fortran && die->parent
 		      && die->parent->tag == DW_TAG_module
 		      && cu->producer
-		      && startswith (cu->producer, "GNU Fortran "))
+		      && startswith (cu->producer, "GNU Fortran"))
 		    SYMBOL_ACLASS_INDEX (sym) = LOC_UNRESOLVED;
 
 		  /* A variable with DW_AT_external is never static,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]