I failed to update the default hook for the signature change. Done
as follows, build tested on s390x-linux.
Will push momentarily. Sorry for the breakage.
* target.def (reassociation_width): Use default_reassociation_width.
* targhooks.h (default_reassociation_width): Declare.
* targhooks.cc (default_reassociation_width): Define.
---
gcc/target.def | 2 +-
gcc/targhooks.cc | 7 +++++++
gcc/targhooks.h | 1 +
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/gcc/target.def b/gcc/target.def
index 3f28768fdf0..7881a2fa33a 100644
--- a/gcc/target.def
+++ b/gcc/target.def
@@ -1536,7 +1536,7 @@ DEFHOOK
"This hook is called by tree reassociator to determine a level of\n\
parallelism required in output calculations chain.",
int, (tree_code opc, machine_mode mode),
-hook_int_uint_mode_1)
+default_reassociation_width)
/* The following member value is a function that returns priority for
fusion of each instruction via pointer parameters. */
diff --git a/gcc/targhooks.cc b/gcc/targhooks.cc
index 113d8836bea..388f696c8aa 100644
--- a/gcc/targhooks.cc
+++ b/gcc/targhooks.cc
@@ -2950,4 +2950,11 @@ default_memtag_untagged_pointer (rtx tagged_pointer, rtx
target)
return untagged_base;
}
+/* The default implementation of TARGET_SCHED_REASSOCIATION_WIDTH. */
+int
+default_reassociation_width (tree_code, machine_mode)
+{
+ return 1;
+}
+
#include "gt-targhooks.h"
diff --git a/gcc/targhooks.h b/gcc/targhooks.h
index 9582233e69f..86de6ef8a69 100644
--- a/gcc/targhooks.h
+++ b/gcc/targhooks.h
@@ -320,5 +320,6 @@ extern rtx default_memtag_add_tag (rtx, poly_int64,
uint8_t);
extern rtx default_memtag_set_tag (rtx, rtx, rtx);
extern rtx default_memtag_extract_tag (rtx, rtx);
extern rtx default_memtag_untagged_pointer (rtx, rtx);
+extern int default_reassociation_width (tree_code, machine_mode);
#endif /* GCC_TARGHOOKS_H */
--
2.51.0