* f/com.c (ffecom_1): Properly handle TREE_READONLY for INDIRECT_REF.

From-SVN: r47667
This commit is contained in:
Richard Kenner 2001-12-05 11:56:22 +00:00 committed by Richard Kenner
parent 4e3f481210
commit 33afb1b72b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed Dec 5 06:49:21 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* com.c (ffecom_1): Properly handle TREE_READONLY for INDIRECT_REF.
Mon Dec 3 18:56:04 2001 Neil Booth <neil@daikokuya.demon.co.uk>
* com.c: Remove leading capital from diagnostic messages, as

View File

@ -9556,8 +9556,10 @@ ffecom_1 (enum tree_code code, tree type, tree node)
if (TREE_SIDE_EFFECTS (node))
TREE_SIDE_EFFECTS (item) = 1;
if ((code == ADDR_EXPR) && staticp (node))
if (code == ADDR_EXPR && staticp (node))
TREE_CONSTANT (item) = 1;
else if (code == INDIRECT_REF)
TREE_READONLY (item) = TYPE_READONLY (type);
return fold (item);
}