Merge from vendor branch HEIMDAL:
[dragonfly.git] / contrib / gcc-3.4 / 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_abort,
28   LTI_memcpy,
29   LTI_memmove,
30   LTI_bcopy,
31   LTI_memcmp,
32   LTI_bcmp,
33   LTI_memset,
34   LTI_bzero,
35   LTI_setbits,
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
44   LTI_profile_function_entry,
45   LTI_profile_function_exit,
46
47   LTI_gcov_flush,
48   LTI_gcov_init,
49
50   LTI_MAX
51 };
52
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];
56
57 /* Accessor macros for libfunc_table.  */
58
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])
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
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
80 #define gcov_flush_libfunc      (libfunc_table[LTI_gcov_flush])
81 #define gcov_init_libfunc       (libfunc_table[LTI_gcov_init])
82
83 #endif /* GCC_LIBFUNCS_H */