aboutsummaryrefslogtreecommitdiff
path: root/gcc/hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r--gcc/hooks.c43
1 files changed, 32 insertions, 11 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c
index 977a3f1..6569a38 100644
--- a/gcc/hooks.c
+++ b/gcc/hooks.c
@@ -34,22 +34,14 @@ hook_void_void ()
/* Generic hook that takes no arguments and returns false. */
bool
-hook_void_bool_false ()
-{
- return false;
-}
-
-/* Generic hook that takes (tree) and returns false. */
-bool
-hook_tree_bool_false (a)
- tree a ATTRIBUTE_UNUSED;
+hook_bool_void_false ()
{
return false;
}
/* Generic hook that takes (tree, int) and does nothing. */
void
-hook_tree_int_void (a, b)
+hook_void_tree_int (a, b)
tree a ATTRIBUTE_UNUSED;
int b ATTRIBUTE_UNUSED;
{
@@ -57,7 +49,7 @@ hook_tree_int_void (a, b)
/* Generic hook that takes (FILE *, const char *) and does nothing. */
void
-hook_FILEptr_constcharptr_void (a, b)
+hook_void_FILEptr_constcharptr (a, b)
FILE *a ATTRIBUTE_UNUSED;
const char *b ATTRIBUTE_UNUSED;
{
@@ -93,3 +85,32 @@ default_can_output_mi_thunk_no_vcall (a, b, c, d)
{
return c == 0;
}
+
+/* ??? Used for comp_type_attributes, which ought to return bool. */
+int
+hook_int_tree_tree_1 (a, b)
+ tree a ATTRIBUTE_UNUSED;
+ tree b ATTRIBUTE_UNUSED;
+{
+ return 1;
+}
+
+void
+hook_void_tree (a)
+ tree a ATTRIBUTE_UNUSED;
+{
+}
+
+void
+hook_void_tree_treeptr (a, b)
+ tree a ATTRIBUTE_UNUSED;
+ tree *b ATTRIBUTE_UNUSED;
+{
+}
+
+bool
+hook_bool_tree_false (a)
+ tree a ATTRIBUTE_UNUSED;
+{
+ return false;
+}