]>
Commit | Line | Data |
---|---|---|
e78d8e51 | 1 | /* Definitions for code generation pass of GNU compiler. |
279b5b3c | 2 | Copyright (C) 2001, 2004 Free Software Foundation, Inc. |
e78d8e51 | 3 | |
40803cd5 | 4 | This file is part of GCC. |
e78d8e51 | 5 | |
40803cd5 | 6 | GCC is free software; you can redistribute it and/or modify |
e78d8e51 ZW |
7 | it under the terms of the GNU General Public License as published by |
8 | the Free Software Foundation; either version 2, or (at your option) | |
9 | any later version. | |
10 | ||
40803cd5 | 11 | GCC is distributed in the hope that it will be useful, |
e78d8e51 ZW |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
40803cd5 | 17 | along with GCC; see the file COPYING. If not, write to |
366ccddb KC |
18 | the Free Software Foundation, 51 Franklin Street, Fifth Floor, |
19 | Boston, MA 02110-1301, USA. */ | |
e78d8e51 ZW |
20 | |
21 | #ifndef GCC_LIBFUNCS_H | |
22 | #define GCC_LIBFUNCS_H | |
23 | ||
24 | /* Enumeration of indexes into libfunc_table. */ | |
25 | enum libfunc_index | |
26 | { | |
9602f5a0 | 27 | LTI_abort, |
e78d8e51 ZW |
28 | LTI_memcpy, |
29 | LTI_memmove, | |
e78d8e51 | 30 | LTI_memcmp, |
e78d8e51 | 31 | LTI_memset, |
68d28100 | 32 | LTI_setbits, |
e78d8e51 ZW |
33 | |
34 | LTI_unwind_resume, | |
35 | LTI_eh_personality, | |
36 | LTI_setjmp, | |
37 | LTI_longjmp, | |
38 | LTI_unwind_sjlj_register, | |
39 | LTI_unwind_sjlj_unregister, | |
40 | ||
e78d8e51 ZW |
41 | LTI_profile_function_entry, |
42 | LTI_profile_function_exit, | |
43 | ||
68d28100 | 44 | LTI_gcov_flush, |
68d28100 | 45 | |
e78d8e51 ZW |
46 | LTI_MAX |
47 | }; | |
48 | ||
49 | /* SYMBOL_REF rtx's for the library functions that are called | |
50 | implicitly and not via optabs. */ | |
e2500fed | 51 | extern GTY(()) rtx libfunc_table[LTI_MAX]; |
e78d8e51 ZW |
52 | |
53 | /* Accessor macros for libfunc_table. */ | |
e78d8e51 | 54 | |
9602f5a0 | 55 | #define abort_libfunc (libfunc_table[LTI_abort]) |
e78d8e51 ZW |
56 | #define memcpy_libfunc (libfunc_table[LTI_memcpy]) |
57 | #define memmove_libfunc (libfunc_table[LTI_memmove]) | |
e78d8e51 | 58 | #define memcmp_libfunc (libfunc_table[LTI_memcmp]) |
e78d8e51 | 59 | #define memset_libfunc (libfunc_table[LTI_memset]) |
68d28100 | 60 | #define setbits_libfunc (libfunc_table[LTI_setbits]) |
e78d8e51 ZW |
61 | |
62 | #define unwind_resume_libfunc (libfunc_table[LTI_unwind_resume]) | |
63 | #define eh_personality_libfunc (libfunc_table[LTI_eh_personality]) | |
64 | #define setjmp_libfunc (libfunc_table[LTI_setjmp]) | |
65 | #define longjmp_libfunc (libfunc_table[LTI_longjmp]) | |
66 | #define unwind_sjlj_register_libfunc (libfunc_table[LTI_unwind_sjlj_register]) | |
67 | #define unwind_sjlj_unregister_libfunc \ | |
68 | (libfunc_table[LTI_unwind_sjlj_unregister]) | |
69 | ||
e78d8e51 ZW |
70 | #define profile_function_entry_libfunc (libfunc_table[LTI_profile_function_entry]) |
71 | #define profile_function_exit_libfunc (libfunc_table[LTI_profile_function_exit]) | |
72 | ||
68d28100 | 73 | #define gcov_flush_libfunc (libfunc_table[LTI_gcov_flush]) |
68d28100 | 74 | |
e78d8e51 | 75 | #endif /* GCC_LIBFUNCS_H */ |