* toplev.c (rest_of_compilation): Reorganize way reg_scan is called
[official-gcc.git] / gcc / hooks.c
blob977a3f1ce7e28f29c6b1884eb59134e3858b68c1
1 /* General-purpose hooks.
2 Copyright (C) 2002 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the
6 Free Software Foundation; either version 2, or (at your option) any
7 later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 In other words, you are welcome to use, share and improve this program.
19 You are forbidden to forbid anyone else to use, share and improve
20 what you give them. Help stamp out software-hoarding! */
22 /* This file contains generic hooks that can be used as defaults for
23 target or language-dependent hook initializers. */
25 #include "config.h"
26 #include "system.h"
27 #include "hooks.h"
29 /* Generic hook that does absolutely zappo. */
30 void
31 hook_void_void ()
35 /* Generic hook that takes no arguments and returns false. */
36 bool
37 hook_void_bool_false ()
39 return false;
42 /* Generic hook that takes (tree) and returns false. */
43 bool
44 hook_tree_bool_false (a)
45 tree a ATTRIBUTE_UNUSED;
47 return false;
50 /* Generic hook that takes (tree, int) and does nothing. */
51 void
52 hook_tree_int_void (a, b)
53 tree a ATTRIBUTE_UNUSED;
54 int b ATTRIBUTE_UNUSED;
58 /* Generic hook that takes (FILE *, const char *) and does nothing. */
59 void
60 hook_FILEptr_constcharptr_void (a, b)
61 FILE *a ATTRIBUTE_UNUSED;
62 const char *b ATTRIBUTE_UNUSED;
66 /* Used for the TARGET_ASM_CAN_OUTPUT_MI_THUNK hook. */
67 bool
68 hook_bool_tree_hwi_hwi_tree_false (a, b, c, d)
69 tree a ATTRIBUTE_UNUSED;
70 HOST_WIDE_INT b ATTRIBUTE_UNUSED;
71 HOST_WIDE_INT c ATTRIBUTE_UNUSED;
72 tree d ATTRIBUTE_UNUSED;
74 return false;
77 bool
78 hook_bool_tree_hwi_hwi_tree_true (a, b, c, d)
79 tree a ATTRIBUTE_UNUSED;
80 HOST_WIDE_INT b ATTRIBUTE_UNUSED;
81 HOST_WIDE_INT c ATTRIBUTE_UNUSED;
82 tree d ATTRIBUTE_UNUSED;
84 return true;
87 bool
88 default_can_output_mi_thunk_no_vcall (a, b, c, d)
89 tree a ATTRIBUTE_UNUSED;
90 HOST_WIDE_INT b ATTRIBUTE_UNUSED;
91 HOST_WIDE_INT c;
92 tree d ATTRIBUTE_UNUSED;
94 return c == 0;