* arm-protos.h (arm_dllexport_name_p, arm_dllimport_name_p): Constify.
[official-gcc.git] / gcc / config / arm / arm-protos.h
blob9c4d942b52c3280a60996686987805f7349c418e
1 /* Prototypes for exported functions defined in arm.c and pe.c
2 Copyright (C) 1999, 2000 Free Software Foundation, Inc.
3 Contributed by Richard Earnshaw (rearnsha@arm.com)
4 Minor hacks by Nick Clifton (nickc@cygnus.com)
6 This file is part of GNU CC.
8 GNU CC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 GNU CC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU CC; see the file COPYING. If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
23 extern void arm_override_options PARAMS ((void));
24 extern int use_return_insn PARAMS ((int));
25 extern int arm_regno_class PARAMS ((int));
26 extern int arm_process_pragma PARAMS ((int (*)(void), void (*) (int),
27 char *));
28 extern void arm_finalize_pic PARAMS ((void));
29 extern int arm_volatile_func PARAMS ((void));
30 extern char * arm_output_epilogue PARAMS ((void));
31 extern void output_func_epilogue PARAMS ((int));
32 extern void arm_expand_prologue PARAMS ((void));
33 /* Used in arm.md, but defined in output.c. */
34 extern void assemble_align PARAMS ((int));
35 extern const char * arm_strip_name_encoding PARAMS ((const char *));
37 #ifdef TREE_CODE
38 extern int arm_return_in_memory PARAMS ((tree));
39 extern int arm_valid_machine_decl_attribute PARAMS ((tree, tree, tree));
40 extern int arm_comp_type_attributes PARAMS ((tree, tree));
41 extern int arm_valid_type_attribute_p PARAMS ((tree, tree, tree, tree));
42 extern void arm_set_default_type_attributes PARAMS ((tree));
43 extern void arm_encode_call_attribute PARAMS ((tree, char));
44 #endif
45 #ifdef RTX_CODE
46 extern int const_ok_for_arm PARAMS ((HOST_WIDE_INT));
47 extern int arm_split_constant PARAMS ((RTX_CODE, enum machine_mode,
48 HOST_WIDE_INT, rtx, rtx, int));
49 extern RTX_CODE arm_canonicalize_comparison PARAMS ((RTX_CODE, rtx *));
50 extern int legitimate_pic_operand_p PARAMS ((rtx));
51 extern rtx legitimize_pic_address PARAMS ((rtx, enum machine_mode, rtx));
52 extern int is_pic PARAMS ((rtx));
53 extern int arm_rtx_costs PARAMS ((rtx, RTX_CODE, RTX_CODE));
54 extern int arm_adjust_cost PARAMS ((rtx, rtx, rtx, int));
55 extern int const_double_rtx_ok_for_fpu PARAMS ((rtx));
56 extern int neg_const_double_rtx_ok_for_fpu PARAMS ((rtx));
58 /* Predicates. */
59 extern int s_register_operand PARAMS ((rtx, enum machine_mode));
60 extern int f_register_operand PARAMS ((rtx, enum machine_mode));
61 extern int reg_or_int_operand PARAMS ((rtx, enum machine_mode));
62 extern int arm_reload_memory_operand PARAMS ((rtx, enum machine_mode));
63 extern int arm_rhs_operand PARAMS ((rtx, enum machine_mode));
64 extern int arm_rhsm_operand PARAMS ((rtx, enum machine_mode));
65 extern int arm_add_operand PARAMS ((rtx, enum machine_mode));
66 extern int arm_not_operand PARAMS ((rtx, enum machine_mode));
67 extern int offsettable_memory_operand PARAMS ((rtx, enum machine_mode));
68 extern int alignable_memory_operand PARAMS ((rtx, enum machine_mode));
69 extern int bad_signed_byte_operand PARAMS ((rtx, enum machine_mode));
70 extern int fpu_rhs_operand PARAMS ((rtx, enum machine_mode));
71 extern int fpu_add_operand PARAMS ((rtx, enum machine_mode));
72 extern int power_of_two_operand PARAMS ((rtx, enum machine_mode));
73 extern int nonimmediate_di_operand PARAMS ((rtx, enum machine_mode));
74 extern int di_operand PARAMS ((rtx, enum machine_mode));
75 extern int nonimmediate_soft_df_operand PARAMS ((rtx, enum machine_mode));
76 extern int soft_df_operand PARAMS ((rtx, enum machine_mode));
77 extern int index_operand PARAMS ((rtx, enum machine_mode));
78 extern int const_shift_operand PARAMS ((rtx, enum machine_mode));
79 extern int shiftable_operator PARAMS ((rtx, enum machine_mode));
80 extern int shift_operator PARAMS ((rtx, enum machine_mode));
81 extern int equality_operator PARAMS ((rtx, enum machine_mode));
82 extern int minmax_operator PARAMS ((rtx, enum machine_mode));
83 extern int cc_register PARAMS ((rtx, enum machine_mode));
84 extern int dominant_cc_register PARAMS ((rtx, enum machine_mode));
85 extern int logical_binary_operator PARAMS ((rtx, enum machine_mode));
86 extern int multi_register_push PARAMS ((rtx, enum machine_mode));
87 extern int load_multiple_operation PARAMS ((rtx, enum machine_mode));
88 extern int store_multiple_operation PARAMS ((rtx, enum machine_mode));
90 extern int symbol_mentioned_p PARAMS ((rtx));
91 extern int label_mentioned_p PARAMS ((rtx));
92 extern RTX_CODE minmax_code PARAMS ((rtx));
93 extern int adjacent_mem_locations PARAMS ((rtx, rtx));
94 extern int load_multiple_sequence PARAMS ((rtx *, int, int *, int *,
95 HOST_WIDE_INT *));
96 extern char * emit_ldm_seq PARAMS ((rtx *, int));
97 extern int store_multiple_sequence PARAMS ((rtx *, int, int *, int *,
98 HOST_WIDE_INT *));
99 extern char * emit_stm_seq PARAMS ((rtx *, int));
100 extern rtx arm_gen_load_multiple PARAMS ((int, int, rtx, int, int, int,
101 int, int));
102 extern rtx arm_gen_store_multiple PARAMS ((int, int, rtx, int, int, int,
103 int, int));
104 extern int arm_gen_movstrqi PARAMS ((rtx *));
105 extern rtx arm_gen_rotated_half_load PARAMS ((rtx));
106 extern enum machine_mode arm_select_cc_mode PARAMS ((RTX_CODE, rtx, rtx));
107 extern rtx arm_gen_compare_reg PARAMS ((RTX_CODE, rtx, rtx));
108 extern void arm_reload_in_hi PARAMS ((rtx *));
109 extern void arm_reload_out_hi PARAMS ((rtx *));
110 extern void arm_reorg PARAMS ((rtx));
111 extern char * fp_immediate_constant PARAMS ((rtx));
112 extern char * output_call PARAMS ((rtx *));
113 extern char * output_call_mem PARAMS ((rtx *));
114 extern char * output_mov_long_double_fpu_from_arm PARAMS ((rtx *));
115 extern char * output_mov_long_double_arm_from_fpu PARAMS ((rtx *));
116 extern char * output_mov_long_double_arm_from_arm PARAMS ((rtx *));
117 extern char * output_mov_double_fpu_from_arm PARAMS ((rtx *));
118 extern char * output_mov_double_arm_from_fpu PARAMS ((rtx *));
119 extern char * output_move_double PARAMS ((rtx *));
120 extern char * output_mov_immediate PARAMS ((rtx *));
121 extern char * output_add_immediate PARAMS ((rtx *));
122 extern char * arithmetic_instr PARAMS ((rtx, int));
123 extern void output_ascii_pseudo_op PARAMS ((FILE *, const unsigned char *, int));
124 extern char * output_return_instruction PARAMS ((rtx, int, int));
125 extern void arm_poke_function_name PARAMS ((FILE *, char *));
126 extern void output_arm_prologue PARAMS ((FILE *, int));
127 extern void arm_print_operand PARAMS ((FILE *, rtx, int));
128 extern void arm_final_prescan_insn PARAMS ((rtx));
129 extern int arm_go_if_legitimate_address PARAMS ((enum machine_mode, rtx));
130 extern int arm_debugger_arg_offset PARAMS ((int, rtx));
131 extern int arm_is_longcall_p PARAMS ((rtx, int, int));
133 #if defined TREE_CODE
134 extern rtx arm_function_arg PARAMS ((CUMULATIVE_ARGS *,
135 enum machine_mode, tree, int));
136 extern void arm_init_cumulative_args PARAMS ((CUMULATIVE_ARGS *, tree, rtx,
137 int));
138 #endif
140 #if defined AOF_ASSEMBLER
141 extern rtx aof_pic_entry PARAMS ((rtx));
142 extern void aof_dump_pic_table PARAMS ((FILE *));
143 extern char * aof_text_section PARAMS ((void));
144 extern char * aof_data_section PARAMS ((void));
145 extern void aof_add_import PARAMS ((char *));
146 extern void aof_delete_import PARAMS ((char *));
147 extern void aof_dump_imports PARAMS ((FILE *));
148 #endif /* AOF_ASSEMBLER */
150 #endif /* RTX_CODE */
152 /* Thumb functions. */
153 extern void arm_init_expanders PARAMS ((void));
154 extern int thumb_far_jump_used_p PARAMS ((int));
155 extern char * thumb_unexpanded_epilogue PARAMS ((void));
156 extern void thumb_expand_prologue PARAMS ((void));
157 extern void thumb_expand_epilogue PARAMS ((void));
158 #ifdef TREE_CODE
159 extern int is_called_in_ARM_mode PARAMS ((tree));
160 #endif
161 #ifdef RTX_CODE
162 extern int thumb_shiftable_const PARAMS ((unsigned HOST_WIDE_INT));
163 extern void thumb_final_prescan_insn PARAMS ((rtx));
164 extern char * thumb_load_double_from_address
165 PARAMS ((rtx *));
166 extern void output_thumb_prologue PARAMS ((FILE *));
167 extern char * thumb_output_move_mem_multiple
168 PARAMS ((int, rtx *));
169 extern void thumb_expand_movstrqi PARAMS ((rtx *));
170 extern int thumb_cmp_operand PARAMS ((rtx, enum machine_mode));
171 extern rtx * thumb_legitimize_pic_address
172 PARAMS ((rtx, enum machine_mode, rtx));
173 extern int thumb_go_if_legitimate_address
174 PARAMS ((enum machine_mode, rtx));
175 extern rtx arm_return_addr PARAMS ((int, rtx));
176 extern void thumb_reload_out_hi PARAMS ((rtx *));
177 extern void thumb_reload_in_hi PARAMS ((rtx *));
178 #endif
180 /* Defined in pe.c. */
181 extern int arm_dllexport_name_p PARAMS ((const char *));
182 extern int arm_dllimport_name_p PARAMS ((const char *));
184 #ifdef TREE_CODE
185 extern int arm_pe_valid_machine_decl_attribute
186 PARAMS ((tree, tree, tree, tree));
187 extern tree arm_pe_merge_machine_decl_attributes
188 PARAMS ((tree, tree));
189 extern void arm_pe_unique_section PARAMS ((tree, int));
190 extern void arm_pe_encode_section_info PARAMS ((tree));
191 extern int arm_dllexport_p PARAMS ((tree));
192 extern int arm_dllimport_p PARAMS ((tree));
193 extern void arm_mark_dllexport PARAMS ((tree));
194 extern void arm_mark_dllimport PARAMS ((tree));
195 #endif