* Makefile.in (rtlanal.o): Depend on $(TM_P_H).
[official-gcc.git] / gcc / target-def.h
blob4b298bc52887a6b5f02d7997d96945ffbe3f5c86
1 /* Default initializers for a generic GCC target.
2 Copyright (C) 2001 Free Software Foundation, Inc.
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.
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.
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.
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! */
22 /* See target.h for a desciption of what this file contains and how to
23 use it.
25 We want to have non-NULL default definitions of all hook functions,
26 even if they do nothing. */
28 /* Assembler output. */
29 #define TARGET_ASM_OPEN_PAREN "("
30 #define TARGET_ASM_CLOSE_PAREN ")"
31 #define TARGET_ASM_FUNCTION_PROLOGUE default_function_pro_epilogue
32 #define TARGET_ASM_FUNCTION_EPILOGUE default_function_pro_epilogue
33 #define TARGET_ASM_FUNCTION_END_PROLOGUE no_asm_to_stream
34 #define TARGET_ASM_FUNCTION_BEGIN_EPILOGUE no_asm_to_stream
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
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
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
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
75 #define TARGET_ASM_OUT {TARGET_ASM_OPEN_PAREN, \
76 TARGET_ASM_CLOSE_PAREN, \
77 TARGET_ASM_FUNCTION_PROLOGUE, \
78 TARGET_ASM_FUNCTION_END_PROLOGUE, \
79 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, \
80 TARGET_ASM_FUNCTION_EPILOGUE, \
81 TARGET_ASM_NAMED_SECTION, \
82 TARGET_ASM_CONSTRUCTOR, \
83 TARGET_ASM_DESTRUCTOR}
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
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}
107 /* All in tree.c. */
108 #define TARGET_MERGE_DECL_ATTRIBUTES merge_decl_attributes
109 #define TARGET_MERGE_TYPE_ATTRIBUTES merge_type_attributes
110 #define TARGET_ATTRIBUTE_TABLE default_target_attribute_table
111 #define TARGET_COMP_TYPE_ATTRIBUTES default_comp_type_attributes
112 #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES default_set_default_type_attributes
113 #define TARGET_INSERT_ATTRIBUTES default_insert_attributes
114 #define TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P default_function_attribute_inlinable_p
116 /* In builtins.c. */
117 #define TARGET_INIT_BUILTINS default_init_builtins
118 #define TARGET_EXPAND_BUILTIN default_expand_builtin
120 /* In varasm.c. */
121 #ifndef TARGET_SECTION_TYPE_FLAGS
122 #define TARGET_SECTION_TYPE_FLAGS default_section_type_flags
123 #endif
125 /* The whole shebang. */
126 #define TARGET_INITIALIZER \
128 TARGET_ASM_OUT, \
129 TARGET_SCHED, \
130 TARGET_MERGE_DECL_ATTRIBUTES, \
131 TARGET_MERGE_TYPE_ATTRIBUTES, \
132 TARGET_ATTRIBUTE_TABLE, \
133 TARGET_COMP_TYPE_ATTRIBUTES, \
134 TARGET_SET_DEFAULT_TYPE_ATTRIBUTES, \
135 TARGET_INSERT_ATTRIBUTES, \
136 TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P, \
137 TARGET_INIT_BUILTINS, \
138 TARGET_EXPAND_BUILTIN, \
139 TARGET_SECTION_TYPE_FLAGS, \
140 TARGET_HAVE_NAMED_SECTIONS, \
141 TARGET_HAVE_CTORS_DTORS \