]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
strub: disable on rl78
authorAlexandre Oliva <oliva@adacore.com>
Mon, 11 Dec 2023 18:09:16 +0000 (15:09 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Mon, 11 Dec 2023 18:09:16 +0000 (15:09 -0300)
rl78 allocation of virtual registers to physical registers doesn't
operate on asm statements, and strub uses asm statements in the
runtime and in the generated code, to the point that the runtime
won't build.  Force strub disabled on that target.

for  gcc/ChangeLog

* config/rl78/rl78.cc (TARGET_HAVE_STRUB_SUPPORT_FOR): Disable.

gcc/config/rl78/rl78.cc

index 5d8fddbd905a4ceebba5cd30e28f2498cfd8916f..f3507280859b0032ada48d8edb86d719bc7e9fab 100644 (file)
@@ -4972,6 +4972,11 @@ rl78_preferred_reload_class (rtx x ATTRIBUTE_UNUSED, reg_class_t rclass)
 }
 
 \f
+/* The strub runtime uses asms, and physical register allocation won't
+   deal with them, so disable it.  */
+#undef TARGET_HAVE_STRUB_SUPPORT_FOR
+#define TARGET_HAVE_STRUB_SUPPORT_FOR hook_bool_tree_false
+
 struct gcc_target targetm = TARGET_INITIALIZER;
 
 #include "gt-rl78.h"