From 37306b1ec05c191db1515e4946423131a6186fd2 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 23 Sep 1996 21:15:37 -0400 Subject: [PATCH] (dbxout_symbol): Fix forgotten case in last change: check DECL_ARTIFICIAL also when using the short cut way. From-SVN: r12791 --- gcc/dbxout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 6711cfbe90c..c8964ab88f8 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -1735,7 +1735,10 @@ dbxout_symbol (decl, local) if ((TREE_CODE (type) == RECORD_TYPE || TREE_CODE (type) == UNION_TYPE || TREE_CODE (type) == QUAL_UNION_TYPE) - && TYPE_NAME (type) == decl) + && TYPE_NAME (type) == decl + /* Distinguish the implicit typedefs of C++ + from explicit ones that might be found in C. */ + && DECL_ARTIFICIAL (decl)) { if (use_gnu_debug_info_extensions && have_used_extensions) { -- 2.30.2