summaryrefslogtreecommitdiff
path: root/gcc/hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r--gcc/hooks.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c
index 8a708777113..18b17dc85f2 100644
--- a/gcc/hooks.c
+++ b/gcc/hooks.c
@@ -77,6 +77,14 @@ hook_bool_mode_rtx_false (enum machine_mode mode ATTRIBUTE_UNUSED,
return false;
}
+/* Generic hook that takes (enum machine_mode, rtx) and returns true. */
+bool
+hook_bool_mode_rtx_true (enum machine_mode mode ATTRIBUTE_UNUSED,
+ rtx value ATTRIBUTE_UNUSED)
+{
+ return true;
+}
+
/* Generic hook that takes (FILE *, const char *) and does nothing. */
void
hook_void_FILEptr_constcharptr (FILE *a ATTRIBUTE_UNUSED, const char *b ATTRIBUTE_UNUSED)