From 6ea685b8571d933d66f45a5ed99f4b93367b0a44 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 25 Oct 2011 22:14:26 +0000 Subject: dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily suppress debug info for the parent type. * dwarf2out.c (add_gnat_descriptive_type_attribute): Temporarily suppress debug info for the parent type. From-SVN: r180456 --- gcc/dwarf2out.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index e328201..8d5a9f0 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -15415,7 +15415,11 @@ add_gnat_descriptive_type_attribute (dw_die_ref die, tree type, dtype_die = lookup_type_die (dtype); if (!dtype_die) { + /* The descriptive type indirectly references TYPE if this is also the + case for TYPE itself. Do not deal with the circularity here. */ + TYPE_DECL_SUPPRESS_DEBUG (TYPE_STUB_DECL (type)) = 1; gen_type_die (dtype, context_die); + TYPE_DECL_SUPPRESS_DEBUG (TYPE_STUB_DECL (type)) = 0; dtype_die = lookup_type_die (dtype); gcc_assert (dtype_die); } -- cgit v1.1