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