X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespillslots.c;h=e494adc4046da6fd21a4a05c14d880bba5aff471;hb=0b1140d1887f497ef413709e5cda2608f2cd1017;hp=d6b3568c46bbc871ebb02a2996a8a20cdc3bc126;hpb=cf9c1673146d1f45d46ceb77eccfaf10fedff25d;p=libfirm diff --git a/ir/be/bespillslots.c b/ir/be/bespillslots.c index d6b3568c4..e494adc40 100644 --- a/ir/be/bespillslots.c +++ b/ir/be/bespillslots.c @@ -519,7 +519,10 @@ static ir_entity* create_stack_entity(be_fec_env_t *env, spill_slot_t *slot) { ir_graph *irg = be_get_birg_irg(env->birg); ir_type *frame = get_irg_frame_type(irg); - ir_entity *res = frame_alloc_area(frame, slot->size, slot->align, 0); + /* TODO: backend should be able to specify wether we want spill slots + * at begin or end of frame */ + int at_start = 1; + ir_entity *res = frame_alloc_area(frame, slot->size, slot->align, at_start); /* adjust size of the entity type... */ ir_type *enttype = get_entity_type(res);