diff options
Diffstat (limited to 'contrib/gcc/config/arm/arm-protos.h')
-rw-r--r-- | contrib/gcc/config/arm/arm-protos.h | 346 |
1 files changed, 166 insertions, 180 deletions
diff --git a/contrib/gcc/config/arm/arm-protos.h b/contrib/gcc/config/arm/arm-protos.h index cae9bea..471254e 100644 --- a/contrib/gcc/config/arm/arm-protos.h +++ b/contrib/gcc/config/arm/arm-protos.h @@ -1,220 +1,206 @@ /* Prototypes for exported functions defined in arm.c and pe.c - Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Contributed by Richard Earnshaw (rearnsha@arm.com) Minor hacks by Nick Clifton (nickc@cygnus.com) -This file is part of GNU CC. + This file is part of GCC. -GNU CC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. + GCC is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. -GNU CC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + GCC is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ + You should have received a copy of the GNU General Public License + along with GCC; see the file COPYING. If not, write to + the Free Software Foundation, 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ #ifndef GCC_ARM_PROTOS_H #define GCC_ARM_PROTOS_H -extern void rdata_section PARAMS ((void)); -extern void arm_override_options PARAMS ((void)); -extern int use_return_insn PARAMS ((int)); -extern int arm_regno_class PARAMS ((int)); -extern void arm_finalize_pic PARAMS ((int)); -extern int arm_volatile_func PARAMS ((void)); -extern const char * arm_output_epilogue PARAMS ((int)); -extern void arm_expand_prologue PARAMS ((void)); -extern HOST_WIDE_INT arm_get_frame_size PARAMS ((void)); -/* Used in arm.md, but defined in output.c. */ -extern void assemble_align PARAMS ((int)); -extern const char * arm_strip_name_encoding PARAMS ((const char *)); -extern void arm_asm_output_labelref PARAMS ((FILE *, const char *)); -extern unsigned long arm_current_func_type PARAMS ((void)); -extern unsigned int arm_compute_initial_elimination_offset PARAMS ((unsigned int, unsigned int)); +extern void arm_override_options (void); +extern int use_return_insn (int, rtx); +extern int arm_regno_class (int); +extern void arm_finalize_pic (int); +extern int arm_volatile_func (void); +extern const char *arm_output_epilogue (rtx); +extern void arm_expand_prologue (void); +extern HOST_WIDE_INT arm_get_frame_size (void); +extern const char *arm_strip_name_encoding (const char *); +extern void arm_asm_output_labelref (FILE *, const char *); +extern unsigned long arm_current_func_type (void); +extern unsigned int arm_compute_initial_elimination_offset (unsigned int, + unsigned int); #ifdef TREE_CODE -extern int arm_return_in_memory PARAMS ((tree)); -extern void arm_encode_call_attribute PARAMS ((tree, int)); -extern int arm_function_ok_for_sibcall PARAMS ((tree)); +extern int arm_return_in_memory (tree); +extern void arm_encode_call_attribute (tree, int); #endif #ifdef RTX_CODE -extern int arm_hard_regno_mode_ok PARAMS ((unsigned int, - enum machine_mode)); -extern int const_ok_for_arm PARAMS ((HOST_WIDE_INT)); -extern int arm_split_constant PARAMS ((RTX_CODE, enum machine_mode, - HOST_WIDE_INT, rtx, rtx, int)); -extern RTX_CODE arm_canonicalize_comparison PARAMS ((RTX_CODE, rtx *)); -extern int legitimate_pic_operand_p PARAMS ((rtx)); -extern rtx legitimize_pic_address PARAMS ((rtx, enum machine_mode, rtx)); -extern int arm_rtx_costs PARAMS ((rtx, RTX_CODE, RTX_CODE)); -extern int const_double_rtx_ok_for_fpu PARAMS ((rtx)); -extern int neg_const_double_rtx_ok_for_fpu PARAMS ((rtx)); +extern int arm_hard_regno_mode_ok (unsigned int, enum machine_mode); +extern int const_ok_for_arm (HOST_WIDE_INT); +extern int arm_split_constant (RTX_CODE, enum machine_mode, HOST_WIDE_INT, rtx, + rtx, int); +extern RTX_CODE arm_canonicalize_comparison (RTX_CODE, rtx *); +extern int legitimate_pic_operand_p (rtx); +extern rtx legitimize_pic_address (rtx, enum machine_mode, rtx); +extern int arm_legitimate_address_p (enum machine_mode, rtx, int); +extern int thumb_legitimate_address_p (enum machine_mode, rtx, int); +extern int thumb_legitimate_offset_p (enum machine_mode, HOST_WIDE_INT); +extern rtx arm_legitimize_address (rtx, rtx, enum machine_mode); +extern int const_double_rtx_ok_for_fpa (rtx); +extern int neg_const_double_rtx_ok_for_fpa (rtx); /* Predicates. */ -extern int s_register_operand PARAMS ((rtx, enum machine_mode)); -extern int arm_hard_register_operand PARAMS ((rtx, enum machine_mode)); -extern int f_register_operand PARAMS ((rtx, enum machine_mode)); -extern int reg_or_int_operand PARAMS ((rtx, enum machine_mode)); -extern int arm_reload_memory_operand PARAMS ((rtx, enum machine_mode)); -extern int arm_rhs_operand PARAMS ((rtx, enum machine_mode)); -extern int arm_rhsm_operand PARAMS ((rtx, enum machine_mode)); -extern int arm_add_operand PARAMS ((rtx, enum machine_mode)); -extern int arm_not_operand PARAMS ((rtx, enum machine_mode)); -extern int offsettable_memory_operand PARAMS ((rtx, enum machine_mode)); -extern int alignable_memory_operand PARAMS ((rtx, enum machine_mode)); -extern int bad_signed_byte_operand PARAMS ((rtx, enum machine_mode)); -extern int fpu_rhs_operand PARAMS ((rtx, enum machine_mode)); -extern int fpu_add_operand PARAMS ((rtx, enum machine_mode)); -extern int power_of_two_operand PARAMS ((rtx, enum machine_mode)); -extern int nonimmediate_di_operand PARAMS ((rtx, enum machine_mode)); -extern int di_operand PARAMS ((rtx, enum machine_mode)); -extern int nonimmediate_soft_df_operand PARAMS ((rtx, enum machine_mode)); -extern int soft_df_operand PARAMS ((rtx, enum machine_mode)); -extern int index_operand PARAMS ((rtx, enum machine_mode)); -extern int const_shift_operand PARAMS ((rtx, enum machine_mode)); -extern int arm_comparison_operator PARAMS ((rtx, enum machine_mode)); -extern int shiftable_operator PARAMS ((rtx, enum machine_mode)); -extern int shift_operator PARAMS ((rtx, enum machine_mode)); -extern int equality_operator PARAMS ((rtx, enum machine_mode)); -extern int minmax_operator PARAMS ((rtx, enum machine_mode)); -extern int cc_register PARAMS ((rtx, enum machine_mode)); -extern int dominant_cc_register PARAMS ((rtx, enum machine_mode)); -extern int logical_binary_operator PARAMS ((rtx, enum machine_mode)); -extern int multi_register_push PARAMS ((rtx, enum machine_mode)); -extern int load_multiple_operation PARAMS ((rtx, enum machine_mode)); -extern int store_multiple_operation PARAMS ((rtx, enum machine_mode)); - -extern int symbol_mentioned_p PARAMS ((rtx)); -extern int label_mentioned_p PARAMS ((rtx)); -extern RTX_CODE minmax_code PARAMS ((rtx)); -extern int adjacent_mem_locations PARAMS ((rtx, rtx)); -extern int load_multiple_sequence PARAMS ((rtx *, int, int *, int *, - HOST_WIDE_INT *)); -extern const char * emit_ldm_seq PARAMS ((rtx *, int)); -extern int store_multiple_sequence PARAMS ((rtx *, int, int *, int *, - HOST_WIDE_INT *)); -extern const char * emit_stm_seq PARAMS ((rtx *, int)); -extern rtx arm_gen_load_multiple PARAMS ((int, int, rtx, int, int, int, - int, int)); -extern rtx arm_gen_store_multiple PARAMS ((int, int, rtx, int, int, int, - int, int)); -extern int arm_gen_movstrqi PARAMS ((rtx *)); -extern rtx arm_gen_rotated_half_load PARAMS ((rtx)); -extern enum machine_mode arm_select_cc_mode PARAMS ((RTX_CODE, rtx, rtx)); -extern rtx arm_gen_compare_reg PARAMS ((RTX_CODE, rtx, rtx)); -extern rtx arm_gen_return_addr_mask PARAMS ((void)); -extern void arm_reload_in_hi PARAMS ((rtx *)); -extern void arm_reload_out_hi PARAMS ((rtx *)); -extern void arm_reorg PARAMS ((rtx)); -extern const char * fp_immediate_constant PARAMS ((rtx)); -extern const char * output_call PARAMS ((rtx *)); -extern const char * output_call_mem PARAMS ((rtx *)); -extern const char * output_mov_long_double_fpu_from_arm PARAMS ((rtx *)); -extern const char * output_mov_long_double_arm_from_fpu PARAMS ((rtx *)); -extern const char * output_mov_long_double_arm_from_arm PARAMS ((rtx *)); -extern const char * output_mov_double_fpu_from_arm PARAMS ((rtx *)); -extern const char * output_mov_double_arm_from_fpu PARAMS ((rtx *)); -extern const char * output_move_double PARAMS ((rtx *)); -extern const char * output_mov_immediate PARAMS ((rtx *)); -extern const char * output_add_immediate PARAMS ((rtx *)); -extern const char * arithmetic_instr PARAMS ((rtx, int)); -extern void output_ascii_pseudo_op PARAMS ((FILE *, const unsigned char *, - int)); -extern const char * output_return_instruction PARAMS ((rtx, int, int)); -extern void arm_poke_function_name PARAMS ((FILE *, const char *)); -extern void arm_print_operand PARAMS ((FILE *, rtx, int)); -extern void arm_print_operand_address PARAMS ((FILE *, rtx)); -extern void arm_final_prescan_insn PARAMS ((rtx)); -extern int arm_go_if_legitimate_address PARAMS ((enum machine_mode, rtx)); -extern int arm_debugger_arg_offset PARAMS ((int, rtx)); -extern int arm_is_longcall_p PARAMS ((rtx, int, int)); +extern int s_register_operand (rtx, enum machine_mode); +extern int arm_hard_register_operand (rtx, enum machine_mode); +extern int f_register_operand (rtx, enum machine_mode); +extern int reg_or_int_operand (rtx, enum machine_mode); +extern int arm_reload_memory_operand (rtx, enum machine_mode); +extern int arm_rhs_operand (rtx, enum machine_mode); +extern int arm_rhsm_operand (rtx, enum machine_mode); +extern int arm_add_operand (rtx, enum machine_mode); +extern int arm_addimm_operand (rtx, enum machine_mode); +extern int arm_not_operand (rtx, enum machine_mode); +extern int offsettable_memory_operand (rtx, enum machine_mode); +extern int alignable_memory_operand (rtx, enum machine_mode); +extern int bad_signed_byte_operand (rtx, enum machine_mode); +extern int fpa_rhs_operand (rtx, enum machine_mode); +extern int fpa_add_operand (rtx, enum machine_mode); +extern int power_of_two_operand (rtx, enum machine_mode); +extern int nonimmediate_di_operand (rtx, enum machine_mode); +extern int di_operand (rtx, enum machine_mode); +extern int nonimmediate_soft_df_operand (rtx, enum machine_mode); +extern int soft_df_operand (rtx, enum machine_mode); +extern int index_operand (rtx, enum machine_mode); +extern int const_shift_operand (rtx, enum machine_mode); +extern int arm_comparison_operator (rtx, enum machine_mode); +extern int shiftable_operator (rtx, enum machine_mode); +extern int shift_operator (rtx, enum machine_mode); +extern int equality_operator (rtx, enum machine_mode); +extern int minmax_operator (rtx, enum machine_mode); +extern int cc_register (rtx, enum machine_mode); +extern int dominant_cc_register (rtx, enum machine_mode); +extern int logical_binary_operator (rtx, enum machine_mode); +extern int multi_register_push (rtx, enum machine_mode); +extern int load_multiple_operation (rtx, enum machine_mode); +extern int store_multiple_operation (rtx, enum machine_mode); +extern int cirrus_fp_register (rtx, enum machine_mode); +extern int cirrus_general_operand (rtx, enum machine_mode); +extern int cirrus_register_operand (rtx, enum machine_mode); +extern int cirrus_shift_const (rtx, enum machine_mode); +extern int cirrus_memory_offset (rtx); + +extern int symbol_mentioned_p (rtx); +extern int label_mentioned_p (rtx); +extern RTX_CODE minmax_code (rtx); +extern int adjacent_mem_locations (rtx, rtx); +extern int load_multiple_sequence (rtx *, int, int *, int *, HOST_WIDE_INT *); +extern const char *emit_ldm_seq (rtx *, int); +extern int store_multiple_sequence (rtx *, int, int *, int *, HOST_WIDE_INT *); +extern const char * emit_stm_seq (rtx *, int); +extern rtx arm_gen_load_multiple (int, int, rtx, int, int, int, int, int); +extern rtx arm_gen_store_multiple (int, int, rtx, int, int, int, int, int); +extern int arm_gen_movstrqi (rtx *); +extern rtx arm_gen_rotated_half_load (rtx); +extern enum machine_mode arm_select_cc_mode (RTX_CODE, rtx, rtx); +extern enum machine_mode arm_select_dominance_cc_mode (rtx, rtx, + HOST_WIDE_INT); +extern rtx arm_gen_compare_reg (RTX_CODE, rtx, rtx); +extern rtx arm_gen_return_addr_mask (void); +extern void arm_reload_in_hi (rtx *); +extern void arm_reload_out_hi (rtx *); +extern const char *fp_immediate_constant (rtx); +extern const char *output_call (rtx *); +extern const char *output_call_mem (rtx *); +extern const char *output_mov_long_double_fpa_from_arm (rtx *); +extern const char *output_mov_long_double_arm_from_fpa (rtx *); +extern const char *output_mov_long_double_arm_from_arm (rtx *); +extern const char *output_mov_double_fpa_from_arm (rtx *); +extern const char *output_mov_double_arm_from_fpa (rtx *); +extern const char *output_move_double (rtx *); +extern const char *output_mov_immediate (rtx *); +extern const char *output_add_immediate (rtx *); +extern const char *arithmetic_instr (rtx, int); +extern void output_ascii_pseudo_op (FILE *, const unsigned char *, int); +extern const char *output_return_instruction (rtx, int, int); +extern void arm_poke_function_name (FILE *, const char *); +extern void arm_print_operand (FILE *, rtx, int); +extern void arm_print_operand_address (FILE *, rtx); +extern void arm_final_prescan_insn (rtx); +extern int arm_go_if_legitimate_address (enum machine_mode, rtx); +extern int arm_debugger_arg_offset (int, rtx); +extern int arm_is_longcall_p (rtx, int, int); +extern int arm_emit_vector_const (FILE *, rtx); +extern const char * arm_output_load_gr (rtx *); #if defined TREE_CODE -extern rtx arm_function_arg PARAMS ((CUMULATIVE_ARGS *, - enum machine_mode, tree, int)); -extern void arm_init_cumulative_args PARAMS ((CUMULATIVE_ARGS *, tree, rtx, - int)); -extern rtx arm_va_arg PARAMS ((tree, tree)); -extern int arm_function_arg_pass_by_reference PARAMS ((CUMULATIVE_ARGS *, - enum machine_mode, - tree, int)); - +extern rtx arm_function_arg (CUMULATIVE_ARGS *, enum machine_mode, tree, int); +extern void arm_init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, tree); +extern rtx arm_va_arg (tree, tree); +extern int arm_function_arg_pass_by_reference (CUMULATIVE_ARGS *, + enum machine_mode, tree, int); #endif #if defined AOF_ASSEMBLER -extern rtx aof_pic_entry PARAMS ((rtx)); -extern void aof_dump_pic_table PARAMS ((FILE *)); -extern char * aof_text_section PARAMS ((void)); -extern char * aof_data_section PARAMS ((void)); -extern void aof_add_import PARAMS ((const char *)); -extern void aof_delete_import PARAMS ((const char *)); -extern void aof_dump_imports PARAMS ((FILE *)); -extern void zero_init_section PARAMS ((void)); -extern void common_section PARAMS ((void)); +extern rtx aof_pic_entry (rtx); +extern char *aof_text_section (void); +extern char *aof_data_section (void); +extern void aof_add_import (const char *); +extern void aof_delete_import (const char *); +extern void zero_init_section (void); +extern void common_section (void); #endif /* AOF_ASSEMBLER */ #endif /* RTX_CODE */ -extern int arm_float_words_big_endian PARAMS ((void)); +extern int arm_float_words_big_endian (void); /* Thumb functions. */ -extern void arm_init_expanders PARAMS ((void)); -extern int thumb_far_jump_used_p PARAMS ((int)); -extern const char * thumb_unexpanded_epilogue PARAMS ((void)); -extern HOST_WIDE_INT thumb_get_frame_size PARAMS ((void)); -extern void thumb_expand_prologue PARAMS ((void)); -extern void thumb_expand_epilogue PARAMS ((void)); +extern void arm_init_expanders (void); +extern int thumb_far_jump_used_p (int); +extern const char *thumb_unexpanded_epilogue (void); +extern HOST_WIDE_INT thumb_get_frame_size (void); +extern void thumb_expand_prologue (void); +extern void thumb_expand_epilogue (void); #ifdef TREE_CODE -extern int is_called_in_ARM_mode PARAMS ((tree)); +extern int is_called_in_ARM_mode (tree); #endif -extern int thumb_shiftable_const PARAMS ((unsigned HOST_WIDE_INT)); +extern int thumb_shiftable_const (unsigned HOST_WIDE_INT); #ifdef RTX_CODE -extern void thumb_final_prescan_insn PARAMS ((rtx)); -extern const char * thumb_load_double_from_address - PARAMS ((rtx *)); -extern const char * thumb_output_move_mem_multiple - PARAMS ((int, rtx *)); -extern void thumb_expand_movstrqi PARAMS ((rtx *)); -extern int thumb_cmp_operand PARAMS ((rtx, enum machine_mode)); -extern rtx * thumb_legitimize_pic_address - PARAMS ((rtx, enum machine_mode, rtx)); -extern int thumb_go_if_legitimate_address - PARAMS ((enum machine_mode, rtx)); -extern rtx arm_return_addr PARAMS ((int, rtx)); -extern void thumb_reload_out_hi PARAMS ((rtx *)); -extern void thumb_reload_in_hi PARAMS ((rtx *)); +extern void thumb_final_prescan_insn (rtx); +extern const char *thumb_load_double_from_address (rtx *); +extern const char *thumb_output_move_mem_multiple (int, rtx *); +extern void thumb_expand_movstrqi (rtx *); +extern int thumb_cmp_operand (rtx, enum machine_mode); +extern int thumb_cbrch_target_operand (rtx, enum machine_mode); +extern rtx *thumb_legitimize_pic_address (rtx, enum machine_mode, rtx); +extern int thumb_go_if_legitimate_address (enum machine_mode, rtx); +extern rtx arm_return_addr (int, rtx); +extern void thumb_reload_out_hi (rtx *); +extern void thumb_reload_in_hi (rtx *); #endif /* Defined in pe.c. */ -extern int arm_dllexport_name_p PARAMS ((const char *)); -extern int arm_dllimport_name_p PARAMS ((const char *)); +extern int arm_dllexport_name_p (const char *); +extern int arm_dllimport_name_p (const char *); #ifdef TREE_CODE -extern void arm_pe_unique_section PARAMS ((tree, int)); -extern void arm_pe_encode_section_info PARAMS ((tree, int)); -extern int arm_dllexport_p PARAMS ((tree)); -extern int arm_dllimport_p PARAMS ((tree)); -extern void arm_mark_dllexport PARAMS ((tree)); -extern void arm_mark_dllimport PARAMS ((tree)); -#endif - -extern void arm_init_builtins PARAMS ((void)); -#if defined (TREE_CODE) && defined (RTX_CODE) -extern rtx arm_expand_builtin PARAMS ((tree, rtx, rtx, - enum machine_mode, int)); +extern void arm_pe_unique_section (tree, int); +extern void arm_pe_encode_section_info (tree, rtx, int); +extern int arm_dllexport_p (tree); +extern int arm_dllimport_p (tree); +extern void arm_mark_dllexport (tree); +extern void arm_mark_dllimport (tree); #endif -#ifdef GCC_C_PRAGMA_H /* included from code that cares about pragmas */ -extern void arm_pr_long_calls PARAMS ((cpp_reader *)); -extern void arm_pr_no_long_calls PARAMS ((cpp_reader *)); -extern void arm_pr_long_calls_off PARAMS ((cpp_reader *)); -#endif +extern void arm_pr_long_calls (struct cpp_reader *); +extern void arm_pr_no_long_calls (struct cpp_reader *); +extern void arm_pr_long_calls_off (struct cpp_reader *); #endif /* ! GCC_ARM_PROTOS_H */ |