summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-23 14:47:08 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-23 14:47:08 +0000
commitad5808e7a1dfc59957be7a25f34947f93ca29f4a (patch)
tree0573f5246d35b1c671e116b2cae089881486beac
parent8955ba91388e1ceb9f865cb0d11c40bca81a48f9 (diff)
downloadppe42-gcc-ad5808e7a1dfc59957be7a25f34947f93ca29f4a.tar.gz
ppe42-gcc-ad5808e7a1dfc59957be7a25f34947f93ca29f4a.zip
revert AT_containing_type change
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30639 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/dwarf2out.c9
2 files changed, 3 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 237bf77d422..21e8547a104 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -53,8 +53,6 @@ Mon Nov 22 22:58:01 1999 "R. Kelley Cook" <KelleyCook@attglobal.net>
(reverse_die_lists): New fn.
(add_sibling_attributes): Use it.
(push_decl_scope): Reorganize.
- (gen_struct_or_union_type_die): Don't add a DW_AT_containing_type
- that points to ourself.
(add_name_and_src_coords_attributes): Don't set file and line for
an artificial decl.
(gen_subprogram_die): An artificial function doesn't need to match
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 884a518dec2..c2926c332cf 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -8935,12 +8935,9 @@ gen_struct_or_union_type_die (type, context_die)
{
tree vtype = DECL_FCONTEXT (TYPE_VFIELD (type));
- if (vtype != type)
- {
- gen_type_die (vtype, context_die);
- add_AT_die_ref (type_die, DW_AT_containing_type,
- lookup_type_die (vtype));
- }
+ gen_type_die (vtype, context_die);
+ add_AT_die_ref (type_die, DW_AT_containing_type,
+ lookup_type_die (vtype));
}
}
else
OpenPOWER on IntegriCloud