aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-09-23 21:15:37 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-09-23 21:15:37 -0400
commit37306b1ec05c191db1515e4946423131a6186fd2 (patch)
treefd023e09f1a838f6d54ee4ed93f4f2c4e5205d4e /gcc
parentff615e83f6a498102969f452dfe09571608d2be7 (diff)
downloadgcc-37306b1ec05c191db1515e4946423131a6186fd2.zip
gcc-37306b1ec05c191db1515e4946423131a6186fd2.tar.gz
gcc-37306b1ec05c191db1515e4946423131a6186fd2.tar.bz2
(dbxout_symbol): Fix forgotten case in last change: check
DECL_ARTIFICIAL also when using the short cut way. From-SVN: r12791
Diffstat (limited to 'gcc')
-rw-r--r--gcc/dbxout.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 6711cfb..c8964ab 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)
{