Commit 975421be by Andrew Pinski Committed by Andrew Pinski

re PR debug/11231 (undefined array size inside struct cause segfault with -g)

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.

From-SVN: r75628
parent 7e4bd541
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.
2004-01-09 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment