OSDN Git Service

* libfuncs.h
[pf3gnuchains/gcc-fork.git] / gcc / libfuncs.h
1 /* Definitions for code generation pass of GNU compiler.
2    Copyright (C) 2001 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 2, 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 COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 #ifndef GCC_LIBFUNCS_H
22 #define GCC_LIBFUNCS_H
23
24 /* Enumeration of indexes into libfunc_table.  */
25 enum libfunc_index
26 {
27   LTI_extendsfdf2,
28   LTI_extendsfxf2,
29   LTI_extendsftf2,
30   LTI_extenddfxf2,
31   LTI_extenddftf2,
32
33   LTI_truncdfsf2,
34   LTI_truncxfsf2,
35   LTI_trunctfsf2,
36   LTI_truncxfdf2,
37   LTI_trunctfdf2,
38
39   LTI_abort,
40   LTI_memcpy,
41   LTI_memmove,
42   LTI_bcopy,
43   LTI_memcmp,
44   LTI_bcmp,
45   LTI_memset,
46   LTI_bzero,
47   LTI_setbits,
48
49   LTI_unwind_resume,
50   LTI_eh_personality,
51   LTI_setjmp,
52   LTI_longjmp,
53   LTI_unwind_sjlj_register,
54   LTI_unwind_sjlj_unregister,
55
56   LTI_floatsisf,
57   LTI_floatdisf,
58   LTI_floattisf,
59
60   LTI_floatsidf,
61   LTI_floatdidf,
62   LTI_floattidf,
63
64   LTI_floatsixf,
65   LTI_floatdixf,
66   LTI_floattixf,
67
68   LTI_floatsitf,
69   LTI_floatditf,
70   LTI_floattitf,
71
72   LTI_fixsfsi,
73   LTI_fixsfdi,
74   LTI_fixsfti,
75
76   LTI_fixdfsi,
77   LTI_fixdfdi,
78   LTI_fixdfti,
79
80   LTI_fixxfsi,
81   LTI_fixxfdi,
82   LTI_fixxfti,
83
84   LTI_fixtfsi,
85   LTI_fixtfdi,
86   LTI_fixtfti,
87
88   LTI_fixunssfsi,
89   LTI_fixunssfdi,
90   LTI_fixunssfti,
91
92   LTI_fixunsdfsi,
93   LTI_fixunsdfdi,
94   LTI_fixunsdfti,
95
96   LTI_fixunsxfsi,
97   LTI_fixunsxfdi,
98   LTI_fixunsxfti,
99
100   LTI_fixunstfsi,
101   LTI_fixunstfdi,
102   LTI_fixunstfti,
103
104   LTI_profile_function_entry,
105   LTI_profile_function_exit,
106
107   LTI_gcov_flush,
108   LTI_gcov_init,
109
110   LTI_MAX
111 };
112
113 /* SYMBOL_REF rtx's for the library functions that are called
114    implicitly and not via optabs.  */
115 extern GTY(()) rtx libfunc_table[LTI_MAX];
116
117 /* Accessor macros for libfunc_table.  */
118 #define extendsfdf2_libfunc     (libfunc_table[LTI_extendsfdf2])
119 #define extendsfxf2_libfunc     (libfunc_table[LTI_extendsfxf2])
120 #define extendsftf2_libfunc     (libfunc_table[LTI_extendsftf2])
121 #define extenddfxf2_libfunc     (libfunc_table[LTI_extenddfxf2])
122 #define extenddftf2_libfunc     (libfunc_table[LTI_extenddftf2])
123
124 #define truncdfsf2_libfunc      (libfunc_table[LTI_truncdfsf2])
125 #define truncxfsf2_libfunc      (libfunc_table[LTI_truncxfsf2])
126 #define trunctfsf2_libfunc      (libfunc_table[LTI_trunctfsf2])
127 #define truncxfdf2_libfunc      (libfunc_table[LTI_truncxfdf2])
128 #define trunctfdf2_libfunc      (libfunc_table[LTI_trunctfdf2])
129
130 #define abort_libfunc   (libfunc_table[LTI_abort])
131 #define memcpy_libfunc  (libfunc_table[LTI_memcpy])
132 #define memmove_libfunc (libfunc_table[LTI_memmove])
133 #define bcopy_libfunc   (libfunc_table[LTI_bcopy])
134 #define memcmp_libfunc  (libfunc_table[LTI_memcmp])
135 #define bcmp_libfunc    (libfunc_table[LTI_bcmp])
136 #define memset_libfunc  (libfunc_table[LTI_memset])
137 #define bzero_libfunc   (libfunc_table[LTI_bzero])
138 #define setbits_libfunc (libfunc_table[LTI_setbits])
139
140 #define unwind_resume_libfunc   (libfunc_table[LTI_unwind_resume])
141 #define eh_personality_libfunc  (libfunc_table[LTI_eh_personality])
142 #define setjmp_libfunc  (libfunc_table[LTI_setjmp])
143 #define longjmp_libfunc (libfunc_table[LTI_longjmp])
144 #define unwind_sjlj_register_libfunc (libfunc_table[LTI_unwind_sjlj_register])
145 #define unwind_sjlj_unregister_libfunc \
146   (libfunc_table[LTI_unwind_sjlj_unregister])
147
148 #define floatsisf_libfunc       (libfunc_table[LTI_floatsisf])
149 #define floatdisf_libfunc       (libfunc_table[LTI_floatdisf])
150 #define floattisf_libfunc       (libfunc_table[LTI_floattisf])
151
152 #define floatsidf_libfunc       (libfunc_table[LTI_floatsidf])
153 #define floatdidf_libfunc       (libfunc_table[LTI_floatdidf])
154 #define floattidf_libfunc       (libfunc_table[LTI_floattidf])
155
156 #define floatsixf_libfunc       (libfunc_table[LTI_floatsixf])
157 #define floatdixf_libfunc       (libfunc_table[LTI_floatdixf])
158 #define floattixf_libfunc       (libfunc_table[LTI_floattixf])
159
160 #define floatsitf_libfunc       (libfunc_table[LTI_floatsitf])
161 #define floatditf_libfunc       (libfunc_table[LTI_floatditf])
162 #define floattitf_libfunc       (libfunc_table[LTI_floattitf])
163
164 #define fixsfsi_libfunc (libfunc_table[LTI_fixsfsi])
165 #define fixsfdi_libfunc (libfunc_table[LTI_fixsfdi])
166 #define fixsfti_libfunc (libfunc_table[LTI_fixsfti])
167
168 #define fixdfsi_libfunc (libfunc_table[LTI_fixdfsi])
169 #define fixdfdi_libfunc (libfunc_table[LTI_fixdfdi])
170 #define fixdfti_libfunc (libfunc_table[LTI_fixdfti])
171
172 #define fixxfsi_libfunc (libfunc_table[LTI_fixxfsi])
173 #define fixxfdi_libfunc (libfunc_table[LTI_fixxfdi])
174 #define fixxfti_libfunc (libfunc_table[LTI_fixxfti])
175
176 #define fixtfsi_libfunc (libfunc_table[LTI_fixtfsi])
177 #define fixtfdi_libfunc (libfunc_table[LTI_fixtfdi])
178 #define fixtfti_libfunc (libfunc_table[LTI_fixtfti])
179
180 #define fixunssfsi_libfunc      (libfunc_table[LTI_fixunssfsi])
181 #define fixunssfdi_libfunc      (libfunc_table[LTI_fixunssfdi])
182 #define fixunssfti_libfunc      (libfunc_table[LTI_fixunssfti])
183
184 #define fixunsdfsi_libfunc      (libfunc_table[LTI_fixunsdfsi])
185 #define fixunsdfdi_libfunc      (libfunc_table[LTI_fixunsdfdi])
186 #define fixunsdfti_libfunc      (libfunc_table[LTI_fixunsdfti])
187
188 #define fixunsxfsi_libfunc      (libfunc_table[LTI_fixunsxfsi])
189 #define fixunsxfdi_libfunc      (libfunc_table[LTI_fixunsxfdi])
190 #define fixunsxfti_libfunc      (libfunc_table[LTI_fixunsxfti])
191
192 #define fixunstfsi_libfunc      (libfunc_table[LTI_fixunstfsi])
193 #define fixunstfdi_libfunc      (libfunc_table[LTI_fixunstfdi])
194 #define fixunstfti_libfunc      (libfunc_table[LTI_fixunstfti])
195
196 #define profile_function_entry_libfunc  (libfunc_table[LTI_profile_function_entry])
197 #define profile_function_exit_libfunc   (libfunc_table[LTI_profile_function_exit])
198
199 #define gcov_flush_libfunc      (libfunc_table[LTI_gcov_flush])
200 #define gcov_init_libfunc       (libfunc_table[LTI_gcov_init])
201
202 #endif /* GCC_LIBFUNCS_H */