1 /* Definitions for code generation pass of GNU compiler.
2 Copyright (C) 2001 Free Software Foundation, Inc.
4 This file is part of GCC.
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)
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.
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. */
21 #ifndef GCC_LIBFUNCS_H
22 #define GCC_LIBFUNCS_H
24 /* Enumeration of indexes into libfunc_table. */
41 LTI_unwind_sjlj_register
,
42 LTI_unwind_sjlj_unregister
,
44 LTI_profile_function_entry
,
45 LTI_profile_function_exit
,
53 /* SYMBOL_REF rtx's for the library functions that are called
54 implicitly and not via optabs. */
55 extern GTY(()) rtx libfunc_table
[LTI_MAX
];
57 /* Accessor macros for libfunc_table. */
59 #define abort_libfunc (libfunc_table[LTI_abort])
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])
67 #define setbits_libfunc (libfunc_table[LTI_setbits])
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])
77 #define profile_function_entry_libfunc (libfunc_table[LTI_profile_function_entry])
78 #define profile_function_exit_libfunc (libfunc_table[LTI_profile_function_exit])
80 #define gcov_flush_libfunc (libfunc_table[LTI_gcov_flush])
81 #define gcov_init_libfunc (libfunc_table[LTI_gcov_init])
83 #endif /* GCC_LIBFUNCS_H */