summaryrefslogtreecommitdiffhomepage
path: root/ir/be/mips
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-01-08 01:45:11 +0100
committerMatthias Braun <matze@braunis.de>2017-01-28 18:45:41 +0100
commitec7cfdce1d4fbf613620772367a7adf3f3ca50a4 (patch)
tree749b77a426915b3d4a635c45d54c8eb268f67581 /ir/be/mips
parente05fde26a55e967319fa766f6f31a8c57d703244 (diff)
Reorganize va_arg handling
Do not put stuff unnecessarily into backend params. - Pass lower_va_arg directly as a parameter to lower_builtins - Pass stack_param align directly to be_default_lower_va_arg
Diffstat (limited to 'ir/be/mips')
-rw-r--r--ir/be/mips/mips_bearch.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir/be/mips/mips_bearch.c b/ir/be/mips/mips_bearch.c
index 5aaff03..5333da9 100644
--- a/ir/be/mips/mips_bearch.c
+++ b/ir/be/mips/mips_bearch.c
@@ -55,7 +55,6 @@ static backend_params mips_backend_params = {
.machine_size = MIPS_MACHINE_SIZE,
.mode_float_arithmetic = NULL, /* will be set later */ // TODO
.type_long_double = NULL, /* will be set later */ // TODO
- .stack_param_align = 4,
.float_int_overflow = ir_overflow_indefinite,
};
@@ -282,10 +281,10 @@ static void mips_lower_for_target(void)
be_after_transform(irg, "lower-copyb");
}
- ir_builtin_kind const supported[] = {
+ static ir_builtin_kind const supported[] = {
ir_bk_saturating_increment,
};
- lower_builtins(ARRAY_SIZE(supported), supported);
+ lower_builtins(ARRAY_SIZE(supported), supported, NULL);
ir_mode *const mode_gp = mips_reg_classes[CLASS_mips_gp].mode;
foreach_irp_irg(i, irg) {