Mercurial > hg > CbC > CbC_gcc
comparison gcc/libfuncs.h @ 0:a06113de4d67
first commit
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2009 14:47:48 +0900 |
parents | |
children | 77e2b8dfacca |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a06113de4d67 |
---|---|
1 /* Definitions for code generation pass of GNU compiler. | |
2 Copyright (C) 2001, 2004, 2007, 2008 Free Software Foundation, Inc. | |
3 | |
4 This file is part of GCC. | |
5 | |
6 GCC is free software; you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
8 the Free Software Foundation; either version 3, or (at your option) | |
9 any later version. | |
10 | |
11 GCC is distributed in the hope that it will be useful, | |
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 | |
17 along with GCC; see the file COPYING3. If not see | |
18 <http://www.gnu.org/licenses/>. */ | |
19 | |
20 #ifndef GCC_LIBFUNCS_H | |
21 #define GCC_LIBFUNCS_H | |
22 | |
23 /* Enumeration of indexes into libfunc_table. */ | |
24 enum libfunc_index | |
25 { | |
26 LTI_abort, | |
27 LTI_memcpy, | |
28 LTI_memmove, | |
29 LTI_memcmp, | |
30 LTI_memset, | |
31 LTI_setbits, | |
32 | |
33 LTI_unwind_resume, | |
34 LTI_eh_personality, | |
35 LTI_setjmp, | |
36 LTI_longjmp, | |
37 LTI_unwind_sjlj_register, | |
38 LTI_unwind_sjlj_unregister, | |
39 | |
40 LTI_profile_function_entry, | |
41 LTI_profile_function_exit, | |
42 | |
43 LTI_synchronize, | |
44 | |
45 LTI_gcov_flush, | |
46 | |
47 LTI_MAX | |
48 }; | |
49 | |
50 /* SYMBOL_REF rtx's for the library functions that are called | |
51 implicitly and not via optabs. */ | |
52 extern GTY(()) rtx libfunc_table[LTI_MAX]; | |
53 | |
54 /* Accessor macros for libfunc_table. */ | |
55 | |
56 #define abort_libfunc (libfunc_table[LTI_abort]) | |
57 #define memcpy_libfunc (libfunc_table[LTI_memcpy]) | |
58 #define memmove_libfunc (libfunc_table[LTI_memmove]) | |
59 #define memcmp_libfunc (libfunc_table[LTI_memcmp]) | |
60 #define memset_libfunc (libfunc_table[LTI_memset]) | |
61 #define setbits_libfunc (libfunc_table[LTI_setbits]) | |
62 | |
63 #define unwind_resume_libfunc (libfunc_table[LTI_unwind_resume]) | |
64 #define eh_personality_libfunc (libfunc_table[LTI_eh_personality]) | |
65 #define setjmp_libfunc (libfunc_table[LTI_setjmp]) | |
66 #define longjmp_libfunc (libfunc_table[LTI_longjmp]) | |
67 #define unwind_sjlj_register_libfunc (libfunc_table[LTI_unwind_sjlj_register]) | |
68 #define unwind_sjlj_unregister_libfunc \ | |
69 (libfunc_table[LTI_unwind_sjlj_unregister]) | |
70 | |
71 #define profile_function_entry_libfunc (libfunc_table[LTI_profile_function_entry]) | |
72 #define profile_function_exit_libfunc (libfunc_table[LTI_profile_function_exit]) | |
73 | |
74 #define synchronize_libfunc (libfunc_table[LTI_synchronize]) | |
75 | |
76 #define gcov_flush_libfunc (libfunc_table[LTI_gcov_flush]) | |
77 | |
78 #endif /* GCC_LIBFUNCS_H */ |