From 7ef8808f8aded5add118e306e08fc2f2c75d011b Mon Sep 17 00:00:00 2001 From: miod Date: Wed, 27 Jul 2022 17:01:02 +0000 Subject: [PATCH] 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) -- 2.20.1