aboutsummaryrefslogtreecommitdiff
path: root/gcc/hooks.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-11-26 18:47:44 -0800
committerRichard Henderson <rth@gcc.gnu.org>2002-11-26 18:47:44 -0800
commit7b1bd3c534986f4ceffcdc726e83cb668293d39e (patch)
treeac42a4633b86b62e66e20e713a5d8c2dcb04f129 /gcc/hooks.c
parent44571d6e4642d00a7adeb9564c838ac500eeabbc (diff)
downloadgcc-7b1bd3c534986f4ceffcdc726e83cb668293d39e.zip
gcc-7b1bd3c534986f4ceffcdc726e83cb668293d39e.tar.gz
gcc-7b1bd3c534986f4ceffcdc726e83cb668293d39e.tar.bz2
hooks.c (hook_bool_void_false, [...]): Rename so that the return type is first.
* hooks.c (hook_bool_void_false, hook_void_tree_int, hook_void_FILEptr_constcharptr): Rename so that the return type is first. (hook_int_tree_tree_1, hook_void_tree, hook_void_tree_treeptr, hook_bool_tree_false): New. * hooks.h: Update. * langhooks-def.h: Update for renames. * target-def.h: Likewise. * tree.c (default_comp_type_attributes, default_set_default_type_attributes, default_insert_attributes, default_function_attribute_inlinable_p, default_ms_bitfield_layout_p): Remove. * tree.h: Update. From-SVN: r59556
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;
+}