X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyheur.c;h=58158c17a1099a7cb4a37c9f619b5200f20f74f0;hb=2ebd0aa19cb0124993642726bd8456d48b451315;hp=79afaba9a9c6d968447fc9d58ab06ce8322fe32e;hpb=026ec52ac914eee06e7afb961fb754735fb4ad9f;p=libfirm diff --git a/ir/be/becopyheur.c b/ir/be/becopyheur.c index 79afaba9a..58158c17a 100644 --- a/ir/be/becopyheur.c +++ b/ir/be/becopyheur.c @@ -390,11 +390,11 @@ static inline void qnode_max_ind_set(qnode_t *qn, const unit_t *ou) { * safe: node has no interference, hence it is in every max stable set. * unsafe: node has an interference */ - safe = alloca((ou->node_count-1) * sizeof(*safe)); - safe_costs = 0; - safe_count = 0; - unsafe = alloca((ou->node_count-1) * sizeof(*unsafe)); - unsafe_costs = alloca((ou->node_count-1) * sizeof(*unsafe_costs)); + safe = ALLOCAN(ir_node*, ou->node_count - 1); + safe_costs = 0; + safe_count = 0; + unsafe = ALLOCAN(ir_node*, ou->node_count - 1); + unsafe_costs = ALLOCAN(int, ou->node_count - 1); unsafe_count = 0; for(i=1; inode_count; ++i) { int is_safe = 1;