mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 03:28:58 +08:00
* expr.c (readonly_fields_p): Ignore everything except FIELD_DECLs.
From-SVN: r30306
This commit is contained in:
parent
e26ef527af
commit
77fd6d104a
@ -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*.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user