diff options
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r-- | gcc/hooks.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c index 594e344..a991980 100644 --- a/gcc/hooks.c +++ b/gcc/hooks.c @@ -85,7 +85,7 @@ hook_bool_mode_true (enum machine_mode mode ATTRIBUTE_UNUSED) return true; } -/* Generic hook that takes (enum machine_mode, rtx) and returns false. */ +/* Generic hook that takes (enum machine_mode, const_rtx) and returns false. */ bool hook_bool_mode_const_rtx_false (enum machine_mode mode ATTRIBUTE_UNUSED, const_rtx value ATTRIBUTE_UNUSED) @@ -93,7 +93,7 @@ hook_bool_mode_const_rtx_false (enum machine_mode mode ATTRIBUTE_UNUSED, return false; } -/* Generic hook that takes (enum machine_mode, rtx) and returns true. */ +/* Generic hook that takes (enum machine_mode, const_rtx) and returns true. */ bool hook_bool_mode_const_rtx_true (enum machine_mode mode ATTRIBUTE_UNUSED, const_rtx value ATTRIBUTE_UNUSED) @@ -101,6 +101,14 @@ hook_bool_mode_const_rtx_true (enum machine_mode mode ATTRIBUTE_UNUSED, return true; } +/* Generic hook that takes (enum machine_mode, rtx) and returns false. */ +bool +hook_bool_mode_rtx_false (enum machine_mode mode ATTRIBUTE_UNUSED, + rtx value ATTRIBUTE_UNUSED) +{ + return false; +} + /* Generic hook that takes (FILE *, const char *) and does nothing. */ void hook_void_FILEptr_constcharptr (FILE *a ATTRIBUTE_UNUSED, const char *b ATTRIBUTE_UNUSED) |