+2005-01-31 Daniel Jacobowitz <dan@codesourcery.com>
+
+ 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.
+
2005-01-29 Alan Modra <amodra@bigpond.net.au>
* unwind-dw2.c (execute_stack_op): Add missing cases for
/* Output Dwarf2 format symbol table information from GCC.
Copyright (C) 1992, 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- 2003, 2004 Free Software Foundation, Inc.
+ 2003, 2004, 2005 Free Software Foundation, Inc.
Contributed by Gary Funck (gary@intrepid.com).
Derived from DWARF 1 implementation of Ron Guilmette (rfg@monkeys.com).
Extensively modified by Jason Merrill (jason@cygnus.com).
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))
{