Commit c92ceadd authored by Matthias Braun's avatar Matthias Braun
Browse files

ia32: fix use_frame setting in set_address()

The bug didn't affect any existing code, but the fix is necessary for code I am
working on.
parent 8b7c8ab4
...@@ -473,6 +473,8 @@ ir_node *ia32_turn_back_am(ir_node *node) ...@@ -473,6 +473,8 @@ ir_node *ia32_turn_back_am(ir_node *node)
set_ia32_am_offs_int(node, 0); set_ia32_am_offs_int(node, 0);
set_ia32_am_ent(node, NULL); set_ia32_am_ent(node, NULL);
set_ia32_am_scale(node, 0); set_ia32_am_scale(node, 0);
set_ia32_frame_ent(node, NULL);
clear_ia32_use_frame(node);
/* rewire mem-proj */ /* rewire mem-proj */
if (get_irn_mode(node) == mode_T) { if (get_irn_mode(node) == mode_T) {
......
...@@ -553,7 +553,7 @@ static void build_address(ia32_address_mode_t *am, ir_node *node, ...@@ -553,7 +553,7 @@ static void build_address(ia32_address_mode_t *am, ir_node *node,
addr->mem = nomem; addr->mem = nomem;
addr->entity = entity; addr->entity = entity;
addr->tls_segment = false; addr->tls_segment = false;
addr->use_frame = 1; addr->use_frame = false;
am->ls_mode = get_type_mode(get_entity_type(entity)); am->ls_mode = get_type_mode(get_entity_type(entity));
am->pinned = op_pin_state_floats; am->pinned = op_pin_state_floats;
return; return;
...@@ -582,9 +582,9 @@ static void set_address(ir_node *node, const x86_address_t *addr) ...@@ -582,9 +582,9 @@ static void set_address(ir_node *node, const x86_address_t *addr)
set_ia32_am_ent(node, addr->entity); set_ia32_am_ent(node, addr->entity);
set_ia32_am_offs_int(node, addr->offset); set_ia32_am_offs_int(node, addr->offset);
set_ia32_am_tls_segment(node, addr->tls_segment); set_ia32_am_tls_segment(node, addr->tls_segment);
set_ia32_frame_ent(node, addr->frame_entity);
if (addr->use_frame) if (addr->use_frame)
set_ia32_use_frame(node); set_ia32_use_frame(node);
set_ia32_frame_ent(node, addr->frame_entity);
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment