]>
Commit | Line | Data |
---|---|---|
672a6f42 NB |
1 | /* Default initializers for a generic GCC target. |
2 | Copyright (C) 2001 Free Software Foundation, Inc. | |
3 | ||
4 | This program is free software; you can redistribute it and/or modify it | |
5 | under the terms of the GNU General Public License as published by the | |
6 | Free Software Foundation; either version 2, or (at your option) any | |
7 | later version. | |
8 | ||
9 | This program is distributed in the hope that it will be useful, | |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | GNU General Public License for more details. | |
13 | ||
14 | You should have received a copy of the GNU General Public License | |
15 | along with this program; if not, write to the Free Software | |
16 | Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
17 | ||
18 | In other words, you are welcome to use, share and improve this program. | |
19 | You are forbidden to forbid anyone else to use, share and improve | |
20 | what you give them. Help stamp out software-hoarding! */ | |
21 | ||
22 | /* See target.h for a desciption of what this file contains and how to | |
a8b997e8 | 23 | use it. |
672a6f42 | 24 | |
a8b997e8 NB |
25 | We want to have non-NULL default definitions of all hook functions, |
26 | even if they do nothing. */ | |
27 | ||
b4c25db2 | 28 | /* Assembler output. */ |
17b53c33 NB |
29 | #define TARGET_ASM_OPEN_PAREN "(" |
30 | #define TARGET_ASM_CLOSE_PAREN ")" | |
08c148a8 NB |
31 | #define TARGET_ASM_FUNCTION_PROLOGUE default_function_pro_epilogue |
32 | #define TARGET_ASM_FUNCTION_EPILOGUE default_function_pro_epilogue | |
b4c25db2 NB |
33 | #define TARGET_ASM_FUNCTION_END_PROLOGUE no_asm_to_stream |
34 | #define TARGET_ASM_FUNCTION_BEGIN_EPILOGUE no_asm_to_stream | |
08c148a8 | 35 | |
2cc07db4 RH |
36 | #if !defined(TARGET_ASM_CONSTRUCTOR) && !defined(USE_COLLECT2) |
37 | # ifdef CTORS_SECTION_ASM_OP | |
38 | # define TARGET_ASM_CONSTRUCTOR default_ctor_section_asm_out_constructor | |
39 | # else | |
40 | # ifdef TARGET_ASM_NAMED_SECTION | |
41 | # define TARGET_ASM_CONSTRUCTOR default_named_section_asm_out_constructor | |
42 | # else | |
43 | # define TARGET_ASM_CONSTRUCTOR default_stabs_asm_out_constructor | |
44 | # endif | |
45 | # endif | |
46 | #endif | |
47 | ||
48 | #if !defined(TARGET_ASM_DESTRUCTOR) && !defined(USE_COLLECT2) | |
49 | # ifdef DTORS_SECTION_ASM_OP | |
50 | # define TARGET_ASM_DESTRUCTOR default_dtor_section_asm_out_destructor | |
51 | # else | |
52 | # ifdef TARGET_ASM_NAMED_SECTION | |
53 | # define TARGET_ASM_DESTRUCTOR default_named_section_asm_out_destructor | |
54 | # else | |
55 | # define TARGET_ASM_DESTRUCTOR default_stabs_asm_out_destructor | |
56 | # endif | |
57 | # endif | |
58 | #endif | |
59 | ||
60 | #if defined(TARGET_ASM_CONSTRUCTOR) && defined(TARGET_ASM_DESTRUCTOR) | |
61 | #define TARGET_HAVE_CTORS_DTORS true | |
62 | #else | |
63 | #define TARGET_HAVE_CTORS_DTORS false | |
64 | #define TARGET_ASM_CONSTRUCTOR NULL | |
65 | #define TARGET_ASM_DESTRUCTOR NULL | |
66 | #endif | |
67 | ||
7c262518 RH |
68 | #ifdef TARGET_ASM_NAMED_SECTION |
69 | #define TARGET_HAVE_NAMED_SECTIONS true | |
70 | #else | |
71 | #define TARGET_ASM_NAMED_SECTION default_no_named_section | |
72 | #define TARGET_HAVE_NAMED_SECTIONS false | |
73 | #endif | |
74 | ||
17b53c33 NB |
75 | #define TARGET_ASM_OUT {TARGET_ASM_OPEN_PAREN, \ |
76 | TARGET_ASM_CLOSE_PAREN, \ | |
77 | TARGET_ASM_FUNCTION_PROLOGUE, \ | |
b4c25db2 NB |
78 | TARGET_ASM_FUNCTION_END_PROLOGUE, \ |
79 | TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, \ | |
7c262518 | 80 | TARGET_ASM_FUNCTION_EPILOGUE, \ |
2cc07db4 RH |
81 | TARGET_ASM_NAMED_SECTION, \ |
82 | TARGET_ASM_CONSTRUCTOR, \ | |
83 | TARGET_ASM_DESTRUCTOR} | |
08c148a8 | 84 | |
c237e94a ZW |
85 | /* Scheduler hooks. All of these default to null pointers, which |
86 | haifa-sched.c looks for and handles. */ | |
87 | #define TARGET_SCHED_ADJUST_COST 0 | |
88 | #define TARGET_SCHED_ADJUST_PRIORITY 0 | |
89 | #define TARGET_SCHED_ISSUE_RATE 0 | |
90 | #define TARGET_SCHED_VARIABLE_ISSUE 0 | |
91 | #define TARGET_SCHED_INIT 0 | |
92 | #define TARGET_SCHED_FINISH 0 | |
93 | #define TARGET_SCHED_REORDER 0 | |
94 | #define TARGET_SCHED_REORDER2 0 | |
95 | #define TARGET_SCHED_CYCLE_DISPLAY 0 | |
96 | ||
b8ec5764 VM |
97 | #define TARGET_SCHED {TARGET_SCHED_ADJUST_COST, \ |
98 | TARGET_SCHED_ADJUST_PRIORITY, \ | |
99 | TARGET_SCHED_ISSUE_RATE, \ | |
100 | TARGET_SCHED_VARIABLE_ISSUE, \ | |
101 | TARGET_SCHED_INIT, \ | |
102 | TARGET_SCHED_FINISH, \ | |
103 | TARGET_SCHED_REORDER, \ | |
104 | TARGET_SCHED_REORDER2, \ | |
105 | TARGET_SCHED_CYCLE_DISPLAY} | |
c237e94a | 106 | |
a8b997e8 | 107 | /* All in tree.c. */ |
672a6f42 NB |
108 | #define TARGET_MERGE_DECL_ATTRIBUTES merge_decl_attributes |
109 | #define TARGET_MERGE_TYPE_ATTRIBUTES merge_type_attributes | |
91d231cb | 110 | #define TARGET_ATTRIBUTE_TABLE default_target_attribute_table |
8d8e52be JM |
111 | #define TARGET_COMP_TYPE_ATTRIBUTES default_comp_type_attributes |
112 | #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES default_set_default_type_attributes | |
12a68f1f | 113 | #define TARGET_INSERT_ATTRIBUTES default_insert_attributes |
91d231cb | 114 | #define TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P default_function_attribute_inlinable_p |
672a6f42 | 115 | |
f6155fda SS |
116 | /* In builtins.c. */ |
117 | #define TARGET_INIT_BUILTINS default_init_builtins | |
118 | #define TARGET_EXPAND_BUILTIN default_expand_builtin | |
119 | ||
7c262518 RH |
120 | /* In varasm.c. */ |
121 | #ifndef TARGET_SECTION_TYPE_FLAGS | |
122 | #define TARGET_SECTION_TYPE_FLAGS default_section_type_flags | |
123 | #endif | |
124 | ||
672a6f42 NB |
125 | /* The whole shebang. */ |
126 | #define TARGET_INITIALIZER \ | |
127 | { \ | |
08c148a8 | 128 | TARGET_ASM_OUT, \ |
c237e94a | 129 | TARGET_SCHED, \ |
672a6f42 NB |
130 | TARGET_MERGE_DECL_ATTRIBUTES, \ |
131 | TARGET_MERGE_TYPE_ATTRIBUTES, \ | |
91d231cb | 132 | TARGET_ATTRIBUTE_TABLE, \ |
8d8e52be | 133 | TARGET_COMP_TYPE_ATTRIBUTES, \ |
12a68f1f | 134 | TARGET_SET_DEFAULT_TYPE_ATTRIBUTES, \ |
f6155fda | 135 | TARGET_INSERT_ATTRIBUTES, \ |
91d231cb | 136 | TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P, \ |
f6155fda | 137 | TARGET_INIT_BUILTINS, \ |
7c262518 RH |
138 | TARGET_EXPAND_BUILTIN, \ |
139 | TARGET_SECTION_TYPE_FLAGS, \ | |
2cc07db4 RH |
140 | TARGET_HAVE_NAMED_SECTIONS, \ |
141 | TARGET_HAVE_CTORS_DTORS \ | |
672a6f42 | 142 | } |