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

From-SVN: r30306
This commit is contained in:
Mark Mitchell 1999-11-01 04:08:54 +00:00 committed by Mark Mitchell
parent e26ef527af
commit 77fd6d104a
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
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*.

View File

@ -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;