summaryrefslogtreecommitdiffhomepage
path: root/ir/be/platform.c
diff options
context:
space:
mode:
authorAndreas Fried <andreas.fried@kit.edu>2017-08-24 21:37:22 +0200
committerAndreas Fried <andreas.fried@kit.edu>2017-08-24 21:38:25 +0200
commit7cf172ce10f287a623597e73614ac85bb977adca (patch)
treea22fb225b6d23cc7a06bcbe550e2284829d4c4ae /ir/be/platform.c
parent860b0964094c7f817705bad5fb41943189a3f5ba (diff)
Revert "Align stack pointer to 16 bytes on all x86 platforms."
This adaptation has caused problems in the X10 compiler, I will therefore temporarily revert it until the bug is found. This reverts commit 860b0964094c7f817705bad5fb41943189a3f5ba.
Diffstat (limited to 'ir/be/platform.c')
-rw-r--r--ir/be/platform.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/be/platform.c b/ir/be/platform.c
index 5cf7b81..b7f4586 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 = 4;
+ ir_platform.ia32_po2_stackalign = 2;
const char *const cpu = ir_triple_get_cpu_type(machine);
const char *const manufacturer = ir_triple_get_manufacturer(machine);
@@ -182,6 +182,7 @@ 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;