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