From b6169c431eb27f5d2f8265a7c7bbb4b3c38511dd Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 27 Jul 2022 17:01:03 +0000 Subject: Force disabling the use of delay slots. This is ugly but gets the compiler to produce 99+% correct code at all optimization levels, and can help people who would like to tinker a bit with the backend. (note m88k ports still use gcc 3 at the moment) --- gnu/gcc/gcc/config/m88k/m88k.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/gcc/gcc/config/m88k/m88k.c b/gnu/gcc/gcc/config/m88k/m88k.c index 3edaef46452..b9fa3801895 100644 --- a/gnu/gcc/gcc/config/m88k/m88k.c +++ b/gnu/gcc/gcc/config/m88k/m88k.c @@ -2572,6 +2572,10 @@ m88k_override_options (void) if (align_functions == 0) align_functions = TARGET_88100 ? 16 : 8; +#if 1 /* XXX breaks -freorder-blocks and even without it, tree-cfg.c */ + flag_delayed_branch = 0; +#endif + /* XXX -freorder-blocks (enabled at -O2) does not work with -fdelayed-branch yet. */ if (flag_delayed_branch) -- cgit v1.2.3