public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix detection of gfortran compilers.
@ 2016-02-22 14:49 Bernhard Heckel
  2016-02-22 14:50 ` [PATCH] testsuite: Fix run to main issue introduced by GCC 5.x Bernhard Heckel
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Bernhard Heckel @ 2016-02-22 14:49 UTC (permalink / raw)
  To: brobecker; +Cc: gdb-patches, bernhard.heckel

From: "bernhard.heckel" <bernhard.heckel@intel.com>

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-02-10  Bernhard Heckel  <bernhard.heckel@intel.com>

gdb/Changelog:

     * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.

---
 gdb/dwarf2read.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,
-- 
2.7.1.339.g0233b80

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-03-02 15:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-22 14:49 [PATCH] Fix detection of gfortran compilers Bernhard Heckel
2016-02-22 14:50 ` [PATCH] testsuite: Fix run to main issue introduced by GCC 5.x Bernhard Heckel
2016-02-26 16:55   ` Joel Brobecker
2016-03-02 15:44     ` Heckel, Bernhard
2016-02-22 14:50 ` [PATCH] testsuite: Nullify pointers before first usage Bernhard Heckel
2016-02-26 16:49   ` Joel Brobecker
2016-03-02 15:45     ` Heckel, Bernhard
2016-02-22 14:50 ` [PATCH] testsuite: Fix timeout issues during print of vla-arrays Bernhard Heckel
2016-02-23 19:37   ` Luis Machado
2016-02-24  8:03     ` Heckel, Bernhard
2016-02-24 14:47       ` Yao Qi
2016-02-25 13:16         ` Heckel, Bernhard
2016-02-26 16:47 ` [PATCH] Fix detection of gfortran compilers Joel Brobecker
2016-03-02 15:45   ` Heckel, Bernhard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).