* profile.c (branch_prob): Remove unused variable insn.
[official-gcc.git] / gcc / target-def.h
blob939ca8fcbd28b41ab6373ff6d1238ee9797061e6
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 #ifdef TARGET_ASM_NAMED_SECTION
37 #define TARGET_HAVE_NAMED_SECTIONS true
38 #else
39 #define TARGET_ASM_NAMED_SECTION default_no_named_section
40 #define TARGET_HAVE_NAMED_SECTIONS false
41 #endif
43 #define TARGET_ASM_OUT {TARGET_ASM_OPEN_PAREN, \
44 TARGET_ASM_CLOSE_PAREN, \
45 TARGET_ASM_FUNCTION_PROLOGUE, \
46 TARGET_ASM_FUNCTION_END_PROLOGUE, \
47 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, \
48 TARGET_ASM_FUNCTION_EPILOGUE, \
49 TARGET_ASM_NAMED_SECTION}
51 /* All in tree.c. */
52 #define TARGET_MERGE_DECL_ATTRIBUTES merge_decl_attributes
53 #define TARGET_MERGE_TYPE_ATTRIBUTES merge_type_attributes
54 #define TARGET_VALID_DECL_ATTRIBUTE default_valid_attribute_p
55 #define TARGET_VALID_TYPE_ATTRIBUTE default_valid_attribute_p
56 #define TARGET_COMP_TYPE_ATTRIBUTES default_comp_type_attributes
57 #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES default_set_default_type_attributes
58 #define TARGET_INSERT_ATTRIBUTES default_insert_attributes
60 /* In builtins.c. */
61 #define TARGET_INIT_BUILTINS default_init_builtins
62 #define TARGET_EXPAND_BUILTIN default_expand_builtin
64 /* In varasm.c. */
65 #ifndef TARGET_SECTION_TYPE_FLAGS
66 #define TARGET_SECTION_TYPE_FLAGS default_section_type_flags
67 #endif
69 /* The whole shebang. */
70 #define TARGET_INITIALIZER \
71 { \
72 TARGET_ASM_OUT, \
73 TARGET_MERGE_DECL_ATTRIBUTES, \
74 TARGET_MERGE_TYPE_ATTRIBUTES, \
75 TARGET_VALID_DECL_ATTRIBUTE, \
76 TARGET_VALID_TYPE_ATTRIBUTE, \
77 TARGET_COMP_TYPE_ATTRIBUTES, \
78 TARGET_SET_DEFAULT_TYPE_ATTRIBUTES, \
79 TARGET_INSERT_ATTRIBUTES, \
80 TARGET_INIT_BUILTINS, \
81 TARGET_EXPAND_BUILTIN, \
82 TARGET_SECTION_TYPE_FLAGS, \
83 TARGET_HAVE_NAMED_SECTIONS \