summaryrefslogtreecommitdiffhomepage
path: root/ir/be/platform.c
diff options
context:
space:
mode:
authorAndreas Fried <andreas.fried@kit.edu>2017-08-14 13:33:39 +0200
committerAndreas Fried <andreas.fried@kit.edu>2017-08-14 13:33:39 +0200
commit860b0964094c7f817705bad5fb41943189a3f5ba (patch)
tree7fbe0b318875e0131a15f4487d13942b25847471 /ir/be/platform.c
parent1e70d2de40eaa5eb7fb2323117cbcdee2a0e05ba (diff)
Align stack pointer to 16 bytes on all x86 platforms.
Diffstat (limited to 'ir/be/platform.c')
-rw-r--r--ir/be/platform.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/be/platform.c b/ir/be/platform.c
index b7f4586..5cf7b81 100644
--- a/ir/be/platform.c
+++ b/ir/be/platform.c
@@ -73,7 +73,7 @@ void ir_platform_set(ir_machine_triple_t const *machine,
ir_platform.intptr_type = IR_TYPE_LONG;
ir_platform.wchar_is_signed = true;
ir_platform.wchar_type = IR_TYPE_INT;
- ir_platform.ia32_po2_stackalign = 2;
+ ir_platform.ia32_po2_stackalign = 4;
const char *const cpu = ir_triple_get_cpu_type(machine);
const char *const manufacturer = ir_triple_get_manufacturer(machine);
@@ -182,7 +182,6 @@ BSD:
ir_platform.long_double_size = 16;
ir_platform.long_double_align = 16;
ir_platform.pic_is_default = true;
- ir_platform.ia32_po2_stackalign = 4;
ir_platform.ia32_struct_in_regs = true;
ir_platform.supports_thread_local_storage = false;