Commit 77fd6d10 by Mark Mitchell Committed by Mark Mitchell

* expr.c (readonly_fields_p): Ignore everything except FIELD_DECLs.

From-SVN: r30306
parent e26ef527
Sun Oct 31 20:25:42 1999 Mark P. Mitchell <mark@codesourcery.com>
* expr.c (readonly_fields_p): Ignore everything except FIELD_DECLs.
Sun Oct 31 20:42:17 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* hard-reg-set.h (reg_names): Constify a char*.
......
......@@ -5573,9 +5573,10 @@ readonly_fields_p (type)
tree field;
for (field = TYPE_FIELDS (type); field != 0; field = TREE_CHAIN (field))
if (TREE_READONLY (field)
|| (TREE_CODE (TREE_TYPE (field)) == RECORD_TYPE
&& readonly_fields_p (TREE_TYPE (field))))
if (TREE_CODE (field) == FIELD_DECL
&& (TREE_READONLY (field)
|| (TREE_CODE (TREE_TYPE (field)) == RECORD_TYPE
&& readonly_fields_p (TREE_TYPE (field)))))
return 1;
return 0;
......
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