public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-swagiaal-using-directive: Ignore explicit die representing global scope '::' (gcc 4.1 bug).
@ 2009-05-14 20:29 swagiaal
  0 siblings, 0 replies; 2+ messages in thread
From: swagiaal @ 2009-05-14 20:29 UTC (permalink / raw)
  To: archer-commits

The branch, archer-swagiaal-using-directive has been updated
       via  1c9be9e4055903bca3fc335189139b67ddb3cdd8 (commit)
      from  7d1e49d1b6be54d563280f13fd69672faa98ef6f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 1c9be9e4055903bca3fc335189139b67ddb3cdd8
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date:   Thu May 14 16:27:00 2009 -0400

    Ignore explicit die representing global scope '::' (gcc 4.1 bug).
    
    +2009-05-14  Sami Wagiaalla  <swagiaal@redhat.com>
    +
    +	Patch provided by Michael Matz <matz@suse.de>
    +	* dwarf2read.c (determine_prefix): Ignore explicit die representing
    +	global scope '::' (gcc 4.1 bug).
    +
     2009-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
    
     	* valops.c (find_overload_match): Creates its own list of argument

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog    |    6 ++++++
 gdb/dwarf2read.c |   17 +++++++++++++----
 2 files changed, 19 insertions(+), 4 deletions(-)

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a700335..af5507b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2009-05-14  Sami Wagiaalla  <swagiaal@redhat.com>
+
+	Patch provided by Michael Matz <matz@suse.de>
+	* dwarf2read.c (determine_prefix): Ignore explicit die representing
+	global scope '::' (gcc 4.1 bug). 
+
 2009-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
 
 	* valops.c (find_overload_match): Creates its own list of argument
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 99463dd..de3b102 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -8330,10 +8330,19 @@ determine_prefix (struct die_info *die, struct dwarf2_cu *cu)
       {
         
       case DW_TAG_namespace:
-	parent_type = read_type_die (parent, cu);
-	/* We give a name to even anonymous namespaces.  */
-	return TYPE_TAG_NAME (parent_type);
-      case DW_TAG_subprogram:
+        {
+          char *prefix;
+          parent_type = read_type_die (parent, cu);
+          /* We give a name to even anonymous namespaces.  */
+          prefix = TYPE_TAG_NAME (parent_type);
+          /* Special hack for bogus global namespace that is emitted as an
+             explicit namespace with the name '::' in g++ 4.1, for
+             some decls.  */
+          if (strcmp(prefix, "::")==0)
+            return "";
+          return prefix;
+        }
+    case DW_TAG_subprogram:
         /* If the die is a direct or indirect child of a function then 
            no prefix is nessesary; this variable cannot be reference 
            from outside the function. */


hooks/post-receive
--
Repository for Project Archer.


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

* [SCM]  archer-swagiaal-using-directive: Ignore explicit die representing global scope '::' (gcc 4.1 bug).
@ 2009-05-15 18:53 swagiaal
  0 siblings, 0 replies; 2+ messages in thread
From: swagiaal @ 2009-05-15 18:53 UTC (permalink / raw)
  To: archer-commits

The branch, archer-swagiaal-using-directive has been updated
       via  d77f78f8b10f3031c8b72029e55a83322df4da8b (commit)
       via  f3d37df1f4af294210f34196b07a1c7108ea9ed0 (commit)
      from  1c9be9e4055903bca3fc335189139b67ddb3cdd8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit d77f78f8b10f3031c8b72029e55a83322df4da8b
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date:   Fri May 15 14:51:42 2009 -0400

    Ignore explicit die representing global scope '::' (gcc 4.1 bug).
    
    +2009-05-14  Sami Wagiaalla  <swagiaal@redhat.com>
    +
    +	Patch provided by Michael Matz <matz@suse.de>
    +	* dwarf2read.c (determine_prefix): Ignore explicit die representing
    +	global scope '::' (gcc 4.1 bug).
    +
     2009-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
    
     	* valops.c (find_overload_match): Creates its own list of argument

commit f3d37df1f4af294210f34196b07a1c7108ea9ed0
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date:   Fri May 15 14:51:05 2009 -0400

    Revert "Ignore explicit die representing global scope '::' (gcc 4.1 bug)."
    
    This reverts commit 1c9be9e4055903bca3fc335189139b67ddb3cdd8.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index af5507b..a700335 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,9 +1,3 @@
-2009-05-14  Sami Wagiaalla  <swagiaal@redhat.com>
-
-	Patch provided by Michael Matz <matz@suse.de>
-	* dwarf2read.c (determine_prefix): Ignore explicit die representing
-	global scope '::' (gcc 4.1 bug). 
-
 2009-03-12  Sami Wagiaalla  <swagiaal@redhat.com>
 
 	* valops.c (find_overload_match): Creates its own list of argument


hooks/post-receive
--
Repository for Project Archer.


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

end of thread, other threads:[~2009-05-15 18:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-14 20:29 [SCM] archer-swagiaal-using-directive: Ignore explicit die representing global scope '::' (gcc 4.1 bug) swagiaal
2009-05-15 18:53 swagiaal

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).