summaryrefslogtreecommitdiffstats
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-10 05:32:45 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-10 05:32:45 +0000
commit11d99e06a52067db2d0faf32ed7d1f2144bb99d9 (patch)
tree70d98eafb097c3d2a7585e486e79ca3de1b767dc /gcc/dbxout.c
parent9b4cd3bb8364bd10aec945ab8673fc7751730326 (diff)
downloadppe42-gcc-11d99e06a52067db2d0faf32ed7d1f2144bb99d9.tar.gz
ppe42-gcc-11d99e06a52067db2d0faf32ed7d1f2144bb99d9.zip
2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
PR debug/11231 * dbxout.c (dbxout_type_fields): Return if any item is error_mark_node or the type is error_mark_node. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75628 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index dee3839974a..e0044902357 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -864,6 +864,11 @@ dbxout_type_fields (tree type)
field that we can support. */
for (tem = TYPE_FIELDS (type); tem; tem = TREE_CHAIN (tem))
{
+
+ /* If on of the nodes is an error_mark or its type is then return early. */
+ if (tem == error_mark_node || TREE_TYPE (tem) == error_mark_node)
+ return;
+
/* Omit here local type decls until we know how to support them. */
if (TREE_CODE (tem) == TYPE_DECL
/* Omit fields whose position or size are variable or too large to
OpenPOWER on IntegriCloud