aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarfout.c
diff options
context:
space:
mode:
authorJason Merrill <jason@casey.cygnus.com>1999-12-15 09:37:48 +0000
committerJason Merrill <jason@gcc.gnu.org>1999-12-15 04:37:48 -0500
commit6ff7fb95722130e00e6ac16d45b53c3618ea9c7c (patch)
tree0129450039d065d3547631c7a0b4550174dfdcd4 /gcc/dwarfout.c
parent04a2ecf7808fe3c8e79141f7dca30eaacc085a8e (diff)
downloadgcc-6ff7fb95722130e00e6ac16d45b53c3618ea9c7c.zip
gcc-6ff7fb95722130e00e6ac16d45b53c3618ea9c7c.tar.gz
gcc-6ff7fb95722130e00e6ac16d45b53c3618ea9c7c.tar.bz2
tree.c (decl_function_context): Handle virtual functions.
* tree.c (decl_function_context): Handle virtual functions. * tlink.c (scan_linker_output): Don't look in demangled name when looking for linker output keywords. * dwarfout.c (output_type): We can defer namespace-scope classes. From-SVN: r30950
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r--gcc/dwarfout.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c
index 1df09c6..cb9e77f 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -4448,9 +4448,8 @@ output_type (type, containing_scope)
if (TYPE_SIZE (type) == 0
&& (TYPE_CONTEXT (type) == NULL
- || (TREE_CODE_CLASS (TREE_CODE (TYPE_CONTEXT (type))) == 't'
- && TREE_CODE (TYPE_CONTEXT (type)) != FUNCTION_TYPE
- && TREE_CODE (TYPE_CONTEXT (type)) != METHOD_TYPE))
+ || AGGREGATE_TYPE_P (TYPE_CONTEXT (type))
+ || TREE_CODE (TYPE_CONTEXT (type)) == NAMESPACE_DECL)
&& !finalizing)
{
/* We can't do this for function-local types, and we don't need