aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarfout.c
diff options
context:
space:
mode:
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