annotate gcc/hooks.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 /* General-purpose hooks.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 2002-2020 Free Software Foundation, Inc.
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 This program is free software; you can redistribute it and/or modify it
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 under the terms of the GNU General Public License as published by the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 Free Software Foundation; either version 3, or (at your option) any
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 later version.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 GNU General Public License for more details.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 along with this program; see the file COPYING3. If not see
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
16 <http://www.gnu.org/licenses/>.
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 In other words, you are welcome to use, share and improve this program.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 You are forbidden to forbid anyone else to use, share and improve
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 what you give them. Help stamp out software-hoarding! */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 /* This file contains generic hooks that can be used as defaults for
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 target or language-dependent hook initializers. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 #include "config.h"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 #include "system.h"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 #include "coretypes.h"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 #include "tm.h"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 #include "hooks.h"
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 /* Generic hook that does absolutely zappo. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 void
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 hook_void_void (void)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 /* Generic hook that takes no arguments and returns false. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 bool
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 hook_bool_void_false (void)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 return false;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
43
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 /* Generic hook that takes no arguments and returns true. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 bool
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
46 hook_bool_void_true (void)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
48 return true;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
50
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 /* Generic hook that takes (bool) and returns false. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
52 bool
111
kono
parents: 67
diff changeset
53 hook_bool_bool_false (bool)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 return false;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
58 /* Generic hook that takes (bool, struct gcc_options *) and returns false. */
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
59 bool
111
kono
parents: 67
diff changeset
60 hook_bool_bool_gcc_optionsp_false (bool, struct gcc_options *)
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
61 {
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
62 return false;
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
63 }
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
64
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
65 /* Generic hook that takes const int, const int) and returns true. */
111
kono
parents: 67
diff changeset
66 bool hook_bool_const_int_const_int_true (const int, const int)
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
67 {
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
68 return true;
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
69 }
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
70
111
kono
parents: 67
diff changeset
71 /* Generic hook that takes (machine_mode) and returns false. */
kono
parents: 67
diff changeset
72 bool
kono
parents: 67
diff changeset
73 hook_bool_mode_false (machine_mode)
kono
parents: 67
diff changeset
74 {
kono
parents: 67
diff changeset
75 return false;
kono
parents: 67
diff changeset
76 }
kono
parents: 67
diff changeset
77
kono
parents: 67
diff changeset
78 /* Generic hook that takes (machine_mode) and returns true. */
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
79 bool
111
kono
parents: 67
diff changeset
80 hook_bool_mode_true (machine_mode)
kono
parents: 67
diff changeset
81 {
kono
parents: 67
diff changeset
82 return true;
kono
parents: 67
diff changeset
83 }
kono
parents: 67
diff changeset
84
kono
parents: 67
diff changeset
85 /* Generic hook that takes (machine_mode, machine_mode) and returns true. */
kono
parents: 67
diff changeset
86 bool
kono
parents: 67
diff changeset
87 hook_bool_mode_mode_true (machine_mode, machine_mode)
kono
parents: 67
diff changeset
88 {
kono
parents: 67
diff changeset
89 return true;
kono
parents: 67
diff changeset
90 }
kono
parents: 67
diff changeset
91
kono
parents: 67
diff changeset
92 /* Generic hook that takes (machine_mode, const_rtx) and returns false. */
kono
parents: 67
diff changeset
93 bool
kono
parents: 67
diff changeset
94 hook_bool_mode_const_rtx_false (machine_mode, const_rtx)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
95 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
96 return false;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
97 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
98
111
kono
parents: 67
diff changeset
99 /* Generic hook that takes (machine_mode, const_rtx) and returns true. */
kono
parents: 67
diff changeset
100 bool
kono
parents: 67
diff changeset
101 hook_bool_mode_const_rtx_true (machine_mode, const_rtx)
kono
parents: 67
diff changeset
102 {
kono
parents: 67
diff changeset
103 return true;
kono
parents: 67
diff changeset
104 }
kono
parents: 67
diff changeset
105
kono
parents: 67
diff changeset
106 /* Generic hook that takes (machine_mode, rtx) and returns false. */
63
b7f97abdc517 update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
107 bool
111
kono
parents: 67
diff changeset
108 hook_bool_mode_rtx_false (machine_mode, rtx)
kono
parents: 67
diff changeset
109 {
kono
parents: 67
diff changeset
110 return false;
kono
parents: 67
diff changeset
111 }
kono
parents: 67
diff changeset
112
kono
parents: 67
diff changeset
113 /* Generic hook that takes (machine_mode, rtx) and returns true. */
kono
parents: 67
diff changeset
114 bool
kono
parents: 67
diff changeset
115 hook_bool_mode_rtx_true (machine_mode, rtx)
63
b7f97abdc517 update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
116 {
b7f97abdc517 update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
117 return true;
b7f97abdc517 update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
118 }
b7f97abdc517 update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
119
111
kono
parents: 67
diff changeset
120 /* Generic hook that takes (const rtx_insn *, const rtx_insn *) and returns true. */
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
121 bool
111
kono
parents: 67
diff changeset
122 hook_bool_const_rtx_insn_const_rtx_insn_true (const rtx_insn *,
kono
parents: 67
diff changeset
123 const rtx_insn *)
kono
parents: 67
diff changeset
124 {
kono
parents: 67
diff changeset
125 return true;
kono
parents: 67
diff changeset
126 }
kono
parents: 67
diff changeset
127
kono
parents: 67
diff changeset
128 /* Generic hook that takes (machine_mode, unsigned HOST_WIDE_INT)
kono
parents: 67
diff changeset
129 and returns false. */
kono
parents: 67
diff changeset
130 bool
kono
parents: 67
diff changeset
131 hook_bool_mode_uhwi_false (machine_mode, unsigned HOST_WIDE_INT)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
132 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
133 return false;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
134 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
135
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
136 /* Generic hook that takes (poly_uint64, poly_uint64) and returns true. */
111
kono
parents: 67
diff changeset
137 bool
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
138 hook_bool_puint64_puint64_true (poly_uint64, poly_uint64)
111
kono
parents: 67
diff changeset
139 {
kono
parents: 67
diff changeset
140 return true;
kono
parents: 67
diff changeset
141 }
kono
parents: 67
diff changeset
142
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
143 bool
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
144 hook_bool_uint_uint_mode_false (unsigned int, unsigned int, machine_mode)
111
kono
parents: 67
diff changeset
145 {
kono
parents: 67
diff changeset
146 return false;
kono
parents: 67
diff changeset
147 }
kono
parents: 67
diff changeset
148
kono
parents: 67
diff changeset
149 /* Generic hook that takes (unsigned int, machine_mode) and returns true. */
kono
parents: 67
diff changeset
150 bool
kono
parents: 67
diff changeset
151 hook_bool_uint_mode_true (unsigned int, machine_mode)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
152 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
153 return true;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
154 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
155
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
156 /* Generic hook that takes (FILE *, const char *) and does nothing. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
157 void
111
kono
parents: 67
diff changeset
158 hook_void_FILEptr_constcharptr (FILE *, const char *)
kono
parents: 67
diff changeset
159 {
kono
parents: 67
diff changeset
160 }
kono
parents: 67
diff changeset
161
kono
parents: 67
diff changeset
162 /* Generic hook that takes (FILE *, const char *, constr_tree *) and does
kono
parents: 67
diff changeset
163 nothing. */
kono
parents: 67
diff changeset
164 void
kono
parents: 67
diff changeset
165 hook_void_FILEptr_constcharptr_const_tree (FILE *, const char *, const_tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
166 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
167 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
168
111
kono
parents: 67
diff changeset
169 /* Generic hook that takes (FILE *, rtx) and returns false. */
kono
parents: 67
diff changeset
170 bool
kono
parents: 67
diff changeset
171 hook_bool_FILEptr_rtx_false (FILE *, rtx)
kono
parents: 67
diff changeset
172 {
kono
parents: 67
diff changeset
173 return false;
kono
parents: 67
diff changeset
174 }
kono
parents: 67
diff changeset
175
kono
parents: 67
diff changeset
176 /* Generic hook that takes (gimple_stmt_iterator *) and returns
kono
parents: 67
diff changeset
177 false. */
kono
parents: 67
diff changeset
178 bool
kono
parents: 67
diff changeset
179 hook_bool_gsiptr_false (gimple_stmt_iterator *)
kono
parents: 67
diff changeset
180 {
kono
parents: 67
diff changeset
181 return false;
kono
parents: 67
diff changeset
182 }
kono
parents: 67
diff changeset
183
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
184 /* Used for the TARGET_ASM_CAN_OUTPUT_MI_THUNK hook. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
185 bool
111
kono
parents: 67
diff changeset
186 hook_bool_const_tree_hwi_hwi_const_tree_false (const_tree, HOST_WIDE_INT,
kono
parents: 67
diff changeset
187 HOST_WIDE_INT, const_tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
188 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
189 return false;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
190 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
191
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
192 bool
111
kono
parents: 67
diff changeset
193 hook_bool_const_tree_hwi_hwi_const_tree_true (const_tree, HOST_WIDE_INT,
kono
parents: 67
diff changeset
194 HOST_WIDE_INT, const_tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
195 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
196 return true;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
197 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
198
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
199 bool
111
kono
parents: 67
diff changeset
200 default_can_output_mi_thunk_no_vcall (const_tree, HOST_WIDE_INT,
kono
parents: 67
diff changeset
201 HOST_WIDE_INT c, const_tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
202 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
203 return c == 0;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
204 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
205
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
206 int
111
kono
parents: 67
diff changeset
207 hook_int_uint_mode_1 (unsigned int, machine_mode)
kono
parents: 67
diff changeset
208 {
kono
parents: 67
diff changeset
209 return 1;
kono
parents: 67
diff changeset
210 }
kono
parents: 67
diff changeset
211
kono
parents: 67
diff changeset
212 int
kono
parents: 67
diff changeset
213 hook_int_const_tree_0 (const_tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
214 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
215 return 0;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
216 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
217
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
218 /* ??? Used for comp_type_attributes, which ought to return bool. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
219 int
111
kono
parents: 67
diff changeset
220 hook_int_const_tree_const_tree_1 (const_tree, const_tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
221 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
222 return 1;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
223 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
224
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
225 int
111
kono
parents: 67
diff changeset
226 hook_int_rtx_0 (rtx)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
227 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
228 return 0;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
229 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
230
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
231 int
111
kono
parents: 67
diff changeset
232 hook_int_rtx_1 (rtx)
kono
parents: 67
diff changeset
233 {
kono
parents: 67
diff changeset
234 return 1;
kono
parents: 67
diff changeset
235 }
kono
parents: 67
diff changeset
236
kono
parents: 67
diff changeset
237 int
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
238 hook_int_rtx_insn_0 (rtx_insn *)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
239 {
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
240 return 0;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
241 }
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
242
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
243 int
111
kono
parents: 67
diff changeset
244 hook_int_rtx_insn_unreachable (rtx_insn *)
kono
parents: 67
diff changeset
245 {
kono
parents: 67
diff changeset
246 gcc_unreachable ();
kono
parents: 67
diff changeset
247 }
kono
parents: 67
diff changeset
248
kono
parents: 67
diff changeset
249 int
kono
parents: 67
diff changeset
250 hook_int_rtx_bool_0 (rtx, bool)
kono
parents: 67
diff changeset
251 {
kono
parents: 67
diff changeset
252 return 0;
kono
parents: 67
diff changeset
253 }
kono
parents: 67
diff changeset
254
kono
parents: 67
diff changeset
255 int
kono
parents: 67
diff changeset
256 hook_int_rtx_mode_as_bool_0 (rtx, machine_mode, addr_space_t, bool)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
257 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
258 return 0;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
259 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
260
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
261 unsigned int
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
262 hook_uint_void_0 (void)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
263 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
264 return 0;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
265 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
266
111
kono
parents: 67
diff changeset
267 HOST_WIDE_INT
kono
parents: 67
diff changeset
268 hook_hwi_void_0 (void)
kono
parents: 67
diff changeset
269 {
kono
parents: 67
diff changeset
270 return 0;
kono
parents: 67
diff changeset
271 }
kono
parents: 67
diff changeset
272
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
273 void
111
kono
parents: 67
diff changeset
274 hook_void_tree (tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
275 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
276 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
277
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
278 void
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
279 hook_void_FILEptr_tree (FILE *, tree)
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
280 {
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
281 }
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
282
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
283 void
111
kono
parents: 67
diff changeset
284 hook_void_rtx_tree (rtx, tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
285 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
286 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
287
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
288 void
111
kono
parents: 67
diff changeset
289 hook_void_constcharptr (const char *)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
290 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
291 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
292
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
293 void
111
kono
parents: 67
diff changeset
294 hook_void_tree_treeptr (tree, tree *)
kono
parents: 67
diff changeset
295 {
kono
parents: 67
diff changeset
296 }
kono
parents: 67
diff changeset
297
kono
parents: 67
diff changeset
298 void
kono
parents: 67
diff changeset
299 hook_void_int_int (int, int)
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
300 {
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
301 }
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
302
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
303 bool
111
kono
parents: 67
diff changeset
304 hook_bool_tree_false (tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
305 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
306 return false;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
307 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
308
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
309 bool
111
kono
parents: 67
diff changeset
310 hook_bool_const_tree_false (const_tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
311 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
312 return false;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
313 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
314
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
315 bool
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
316 hook_bool_const_tree_const_tree_true (const_tree, const_tree)
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
317 {
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
318 return true;
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
319 }
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
320
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
321 bool
111
kono
parents: 67
diff changeset
322 hook_bool_tree_true (tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
323 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
324 return true;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
325 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
326
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
327 bool
111
kono
parents: 67
diff changeset
328 hook_bool_const_tree_true (const_tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
329 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
330 return true;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
331 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
332
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
333 bool
111
kono
parents: 67
diff changeset
334 hook_bool_tree_tree_false (tree, tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
335 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
336 return false;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
337 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
338
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
339 bool
111
kono
parents: 67
diff changeset
340 hook_bool_tree_tree_true (tree, tree)
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
341 {
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
342 return true;
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
343 }
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
344
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
345 bool
111
kono
parents: 67
diff changeset
346 hook_bool_tree_bool_false (tree, bool)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
347 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
348 return false;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
349 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
350
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
351 bool
111
kono
parents: 67
diff changeset
352 hook_bool_rtx_insn_true (rtx_insn *)
kono
parents: 67
diff changeset
353 {
kono
parents: 67
diff changeset
354 return true;
kono
parents: 67
diff changeset
355 }
kono
parents: 67
diff changeset
356
kono
parents: 67
diff changeset
357 bool
kono
parents: 67
diff changeset
358 hook_bool_rtx_false (rtx)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
359 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
360 return false;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
361 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
362
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
363 bool
111
kono
parents: 67
diff changeset
364 hook_bool_uintp_uintp_false (unsigned int *, unsigned int *)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
365 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
366 return false;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
367 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
368
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
369 bool
111
kono
parents: 67
diff changeset
370 hook_bool_rtx_mode_int_int_intp_bool_false (rtx, machine_mode, int, int,
kono
parents: 67
diff changeset
371 int *, bool)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
372 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
373 return false;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
374 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
375
111
kono
parents: 67
diff changeset
376 bool
kono
parents: 67
diff changeset
377 hook_bool_wint_wint_uint_bool_true (const widest_int &, const widest_int &,
kono
parents: 67
diff changeset
378 unsigned int, bool)
kono
parents: 67
diff changeset
379 {
kono
parents: 67
diff changeset
380 return true;
kono
parents: 67
diff changeset
381 }
kono
parents: 67
diff changeset
382
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
383 /* Generic hook that takes an rtx and returns it. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
384 rtx
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
385 hook_rtx_rtx_identity (rtx x)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
386 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
387 return x;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
388 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
389
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
390 /* Generic hook that takes an rtx and returns NULL_RTX. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
391 rtx
111
kono
parents: 67
diff changeset
392 hook_rtx_rtx_null (rtx)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
393 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
394 return NULL;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
395 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
396
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
397 /* Generic hook that takes a tree and an int and returns NULL_RTX. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
398 rtx
111
kono
parents: 67
diff changeset
399 hook_rtx_tree_int_null (tree, int)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
400 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
401 return NULL;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
402 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
403
111
kono
parents: 67
diff changeset
404 /* Generic hook that takes a machine mode and returns an unsigned int 0. */
kono
parents: 67
diff changeset
405 unsigned int
kono
parents: 67
diff changeset
406 hook_uint_mode_0 (machine_mode)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
407 {
111
kono
parents: 67
diff changeset
408 return 0;
kono
parents: 67
diff changeset
409 }
kono
parents: 67
diff changeset
410
kono
parents: 67
diff changeset
411 /* Generic hook that takes no arguments and returns a NULL const string. */
kono
parents: 67
diff changeset
412 const char *
kono
parents: 67
diff changeset
413 hook_constcharptr_void_null (void)
kono
parents: 67
diff changeset
414 {
kono
parents: 67
diff changeset
415 return NULL;
kono
parents: 67
diff changeset
416 }
kono
parents: 67
diff changeset
417
kono
parents: 67
diff changeset
418 /* Generic hook that takes no arguments and returns a NULL string. */
kono
parents: 67
diff changeset
419 char *
kono
parents: 67
diff changeset
420 hook_charptr_void_null (void)
kono
parents: 67
diff changeset
421 {
kono
parents: 67
diff changeset
422 return NULL;
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
423 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
424
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
425 /* Generic hook that takes a tree and returns a NULL string. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
426 const char *
111
kono
parents: 67
diff changeset
427 hook_constcharptr_const_tree_null (const_tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
428 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
429 return NULL;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
430 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
431
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
432 tree
111
kono
parents: 67
diff changeset
433 hook_tree_tree_int_treep_bool_null (tree, int, tree *, bool)
kono
parents: 67
diff changeset
434 {
kono
parents: 67
diff changeset
435 return NULL;
kono
parents: 67
diff changeset
436 }
kono
parents: 67
diff changeset
437
kono
parents: 67
diff changeset
438 tree
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
439 hook_tree_tree_bool_null (tree, bool)
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
440 {
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
441 return NULL;
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
442 }
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
443
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
444 tree
111
kono
parents: 67
diff changeset
445 hook_tree_tree_tree_null (tree, tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
446 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
447 return NULL;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
448 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
449
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
450 tree
111
kono
parents: 67
diff changeset
451 hook_tree_tree_tree_tree_null (tree, tree, tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
452 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
453 return NULL;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
454 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
455
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
456 tree
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
457 hook_tree_treeptr_tree_tree_int_boolptr_null (tree *, tree, tree, int, bool *)
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
458 {
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
459 return NULL;
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
460 }
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
461
111
kono
parents: 67
diff changeset
462 /* Generic hook that takes an rtx_insn *and returns a NULL string. */
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
463 const char *
111
kono
parents: 67
diff changeset
464 hook_constcharptr_const_rtx_insn_null (const rtx_insn *)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
465 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
466 return NULL;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
467 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
468
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
469 const char *
111
kono
parents: 67
diff changeset
470 hook_constcharptr_const_tree_const_tree_null (const_tree, const_tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
471 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
472 return NULL;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
473 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
474
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
475 const char *
111
kono
parents: 67
diff changeset
476 hook_constcharptr_int_const_tree_null (int, const_tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
477 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
478 return NULL;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
479 }
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
480
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
481 const char *
111
kono
parents: 67
diff changeset
482 hook_constcharptr_int_const_tree_const_tree_null (int, const_tree, const_tree)
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
483 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
484 return NULL;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
485 }
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
486
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
487 /* Generic hook that takes a const_tree and returns NULL_TREE. */
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
488 tree
111
kono
parents: 67
diff changeset
489 hook_tree_const_tree_null (const_tree)
kono
parents: 67
diff changeset
490 {
kono
parents: 67
diff changeset
491 return NULL;
kono
parents: 67
diff changeset
492 }
kono
parents: 67
diff changeset
493
kono
parents: 67
diff changeset
494 /* Generic hook that takes no arguments and returns a NULL_TREE. */
kono
parents: 67
diff changeset
495 tree
kono
parents: 67
diff changeset
496 hook_tree_void_null (void)
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
497 {
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
498 return NULL;
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
499 }
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
500
111
kono
parents: 67
diff changeset
501 /* Generic hook that takes a rtx_insn * and an int and returns a bool. */
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
502
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
503 bool
111
kono
parents: 67
diff changeset
504 hook_bool_rtx_insn_int_false (rtx_insn *, int)
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
505 {
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
506 return false;
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
507 }
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
508
111
kono
parents: 67
diff changeset
509 /* Generic hook that takes a rtx_insn * and an int and returns void. */
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
510
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
511 void
111
kono
parents: 67
diff changeset
512 hook_void_rtx_insn_int (rtx_insn *, int)
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
513 {
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
514 }
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
515
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
516 /* Generic hook that takes a struct gcc_options * and returns void. */
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
517
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
518 void
111
kono
parents: 67
diff changeset
519 hook_void_gcc_optionsp (struct gcc_options *)
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
520 {
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
521 }
111
kono
parents: 67
diff changeset
522
kono
parents: 67
diff changeset
523 /* Generic hook that takes an unsigned int, an unsigned int pointer and
kono
parents: 67
diff changeset
524 returns false. */
kono
parents: 67
diff changeset
525
kono
parents: 67
diff changeset
526 bool
kono
parents: 67
diff changeset
527 hook_bool_uint_uintp_false (unsigned int, unsigned int *)
kono
parents: 67
diff changeset
528 {
kono
parents: 67
diff changeset
529 return false;
kono
parents: 67
diff changeset
530 }
kono
parents: 67
diff changeset
531
kono
parents: 67
diff changeset
532 /* Generic hook that takes a register class and returns false. */
kono
parents: 67
diff changeset
533 bool
kono
parents: 67
diff changeset
534 hook_bool_reg_class_t_false (reg_class_t regclass ATTRIBUTE_UNUSED)
kono
parents: 67
diff changeset
535 {
kono
parents: 67
diff changeset
536 return false;
kono
parents: 67
diff changeset
537 }
kono
parents: 67
diff changeset
538
kono
parents: 67
diff changeset
539 /* Generic hook that takes 2 machine_modes and a register class and
kono
parents: 67
diff changeset
540 returns true. */
kono
parents: 67
diff changeset
541 bool
kono
parents: 67
diff changeset
542 hook_bool_mode_mode_reg_class_t_true (machine_mode, machine_mode, reg_class_t)
kono
parents: 67
diff changeset
543 {
kono
parents: 67
diff changeset
544 return true;
kono
parents: 67
diff changeset
545 }
kono
parents: 67
diff changeset
546
kono
parents: 67
diff changeset
547 /* Generic hook that takes a machine_mode and 2 register classes
kono
parents: 67
diff changeset
548 and returns false. */
kono
parents: 67
diff changeset
549 bool
kono
parents: 67
diff changeset
550 hook_bool_mode_reg_class_t_reg_class_t_false (machine_mode, reg_class_t,
kono
parents: 67
diff changeset
551 reg_class_t)
kono
parents: 67
diff changeset
552 {
kono
parents: 67
diff changeset
553 return false;
kono
parents: 67
diff changeset
554 }
kono
parents: 67
diff changeset
555
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
556 /* Generic hook that takes a mode and an unsigned HOST_WIDE_INT and
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
557 returns no mode. */
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
558
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
559 opt_machine_mode
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
560 hook_optmode_mode_uhwi_none (machine_mode, unsigned HOST_WIDE_INT)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
561 {
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
562 return opt_machine_mode ();
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
563 }