From 24749bf9e4d943e8194dc9dd3e50c81938abc364 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 23 Jul 2008 14:12:19 +0000 Subject: [PATCH] place spill entities at other end of frame [r20623] --- ir/be/bespillslots.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.20.1