This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [3.4] Fix C structure nesting for dwarf2out



On 25/01/2005, at 11:36 AM, Daniel Jacobowitz wrote:


2004-09-22 Mark Mitchell <mark@codesourcery.com>

	* gcc/dwarf2out.c (scope_die_for): If the containing scope is a
	TRANSLATION_UNIT_DECL, consider it to be a global.

This is OK.


Index: dwarf2out.c
===================================================================
RCS file: /big/fsf/rsync/gcc-cvs/gcc/gcc/dwarf2out.c,v
retrieving revision 1.478.2.10
retrieving revision 1.478.2.10.2.1
diff -u -p -r1.478.2.10 -r1.478.2.10.2.1
--- dwarf2out.c 24 Aug 2004 02:07:22 -0000 1.478.2.10
+++ dwarf2out.c 23 Sep 2004 07:27:07 -0000 1.478.2.10.2.1
@@ -10215,7 +10215,8 @@ scope_die_for (tree t, dw_die_ref contex
if (containing_scope && TREE_CODE (containing_scope) == FUNCTION_TYPE)
containing_scope = NULL_TREE;


-  if (containing_scope == NULL_TREE)
+  if (containing_scope == NULL_TREE
+      || TREE_CODE (containing_scope) == TRANSLATION_UNIT_DECL)
     scope_die = comp_unit_die;
   else if (TYPE_P (containing_scope))
     {

Attachment: smime.p7s
Description: S/MIME cryptographic signature


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