* calls.c (calls_function_1, case CONSTRUCTOR): New case.

From-SVN: r38560
This commit is contained in:
Richard Kenner 2000-12-30 14:52:15 +00:00 committed by Richard Kenner
parent 1da68f560d
commit b367c41628
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2000-12-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* calls.c (calls_function_1, case CONSTRUCTOR): New case.
* alias.c (alias_sets_conflict_p): New function.
(mems_in_disjoint_alias_sets_p): Use it.
(readonly_fields_p): Moved from expr.c; check for record type.

View File

@ -297,6 +297,17 @@ calls_function_1 (exp, which)
break;
case CONSTRUCTOR:
{
tree tem;
for (tem = CONSTRUCTOR_ELTS (exp); tem != 0; tem = TREE_CHAIN (tem))
if (calls_function_1 (TREE_VALUE (tem), which))
return 1;
}
return 0;
case SAVE_EXPR:
if (SAVE_EXPR_RTL (exp) != 0)
return 0;