diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1998-05-05 01:27:06 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-05-04 21:27:06 -0400 |
commit | 2addbe1dca329d6a5c94be60f2512e05787e1fed (patch) | |
tree | 5a18ae7b4648a1141acc035141e7f86ae0c82e17 /gcc/dwarfout.c | |
parent | 2e14a41b63bb3ac89e91b85e58ae3d0f3e3798c9 (diff) | |
download | gcc-2addbe1dca329d6a5c94be60f2512e05787e1fed.zip gcc-2addbe1dca329d6a5c94be60f2512e05787e1fed.tar.gz gcc-2addbe1dca329d6a5c94be60f2512e05787e1fed.tar.bz2 |
tree.def: Add NAMESPACE_DECL.
* tree.def: Add NAMESPACE_DECL.
* dwarfout.c (type_ok_for_scope): Ignore NAMESPACE_DECLs for now.
* dwarf2out.c (push_decl_scope): Likewise.
(scope_die_for): Likewise.
* tree.c (decl_function_context): Use TREE_CODE_CLASS to determine
how to get next context level.
* cp-tree.def: Remove NAMESPACE_DECL.
* cp/Makefile.in: Add .SUFFIXES.
From-SVN: r19539
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r-- | gcc/dwarfout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index 8e1f206..edcf822 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -4136,6 +4136,9 @@ type_ok_for_scope (type, scope) return is_tagged_type (type) ? (TYPE_CONTEXT (type) == scope + /* Ignore namespaces for the moment. */ + || (scope == NULL_TREE + && TREE_CODE (TYPE_CONTEXT (type)) == NAMESPACE_DECL) || (scope == NULL_TREE && is_tagged_type (TYPE_CONTEXT (type)) && TREE_ASM_WRITTEN (TYPE_CONTEXT (type)))) : (scope == NULL_TREE || ! is_tagged_type (scope)); |