Commit 95fbf32c authored by Michael Beck's avatar Michael Beck
Browse files

C99 features removed

[r19261]
parent 1f945b23
...@@ -839,11 +839,15 @@ static ir_node *adjust_alloc_size(unsigned stack_alignment, ir_node *size, ...@@ -839,11 +839,15 @@ static ir_node *adjust_alloc_size(unsigned stack_alignment, ir_node *size,
ir_graph *irg, ir_node *block, dbg_info *dbg) ir_graph *irg, ir_node *block, dbg_info *dbg)
{ {
if (stack_alignment > 1) { if (stack_alignment > 1) {
ir_mode *mode;
tarval *tv;
ir_node *mask;
assert(is_po2(stack_alignment)); assert(is_po2(stack_alignment));
ir_mode *mode = get_irn_mode(size);
tarval *tv = new_tarval_from_long(stack_alignment-1, mode);
ir_node *mask = new_r_Const(irg, block, mode, tv);
mode = get_irn_mode(size);
tv = new_tarval_from_long(stack_alignment-1, mode);
mask = new_r_Const(irg, block, mode, tv);
size = new_rd_Add(dbg, irg, block, size, mask, mode); size = new_rd_Add(dbg, irg, block, size, mask, mode);
tv = new_tarval_from_long(-(long)stack_alignment, mode); tv = new_tarval_from_long(-(long)stack_alignment, mode);
......
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