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