diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-05 01:27:06 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-05 01:27:06 +0000 |
commit | 7c43cc0e6b09b119d0a26236152ad6eac9408d53 (patch) | |
tree | 5a18ae7b4648a1141acc035141e7f86ae0c82e17 /gcc/dwarfout.c | |
parent | 2a90ad2559c5b83bd167fb791d9ba54bc1e4254e (diff) | |
download | gcc-7c43cc0e6b09b119d0a26236152ad6eac9408d53.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19539 138bc75d-0d04-0410-961f-82ee72b054a4
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 8e1f2067f52..edcf82241b8 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)); |