* calls.c (calls_function_1, case CONSTRUCTOR): New case.
From-SVN: r38560
This commit is contained in:
parent
1da68f560d
commit
b367c41628
|
@ -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.
|
||||
|
|
11
gcc/calls.c
11
gcc/calls.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue