OSDN Git Service

* target.h (struct gcc_target): New fields init_builtins and
[pf3gnuchains/gcc-fork.git] / gcc / target-def.h
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
23    use it.
24
25    We want to have non-NULL default definitions of all hook functions,
26    even if they do nothing.  */
27
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
35
36 #define TARGET_ASM_OUT {TARGET_ASM_OPEN_PAREN,                  \
37                         TARGET_ASM_CLOSE_PAREN,                 \
38                         TARGET_ASM_FUNCTION_PROLOGUE,           \
39                         TARGET_ASM_FUNCTION_END_PROLOGUE,       \
40                         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE,     \
41                         TARGET_ASM_FUNCTION_EPILOGUE}
42
43 /* All in tree.c.  */
44 #define TARGET_MERGE_DECL_ATTRIBUTES merge_decl_attributes
45 #define TARGET_MERGE_TYPE_ATTRIBUTES merge_type_attributes
46 #define TARGET_VALID_DECL_ATTRIBUTE default_valid_attribute_p
47 #define TARGET_VALID_TYPE_ATTRIBUTE default_valid_attribute_p
48 #define TARGET_COMP_TYPE_ATTRIBUTES default_comp_type_attributes
49 #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES default_set_default_type_attributes
50 #define TARGET_INSERT_ATTRIBUTES default_insert_attributes
51
52 /* In builtins.c.  */
53 #define TARGET_INIT_BUILTINS default_init_builtins
54 #define TARGET_EXPAND_BUILTIN default_expand_builtin
55
56 /* The whole shebang.  */
57 #define TARGET_INITIALIZER                      \
58 {                                               \
59   TARGET_ASM_OUT,                               \
60   TARGET_MERGE_DECL_ATTRIBUTES,                 \
61   TARGET_MERGE_TYPE_ATTRIBUTES,                 \
62   TARGET_VALID_DECL_ATTRIBUTE,                  \
63   TARGET_VALID_TYPE_ATTRIBUTE,                  \
64   TARGET_COMP_TYPE_ATTRIBUTES,                  \
65   TARGET_SET_DEFAULT_TYPE_ATTRIBUTES,           \
66   TARGET_INSERT_ATTRIBUTES,                     \
67   TARGET_INIT_BUILTINS,                         \
68   TARGET_EXPAND_BUILTIN                         \
69 }