08c148a85c
* Makefile.in (final.o): Depend on target.h. * final.c: Include target.h. (default_function_pro_epilogue): New. (final_start_function): Use target structure for function prologues. (final_end_function): Use target structure for function epilogues. * fold-const.c (real_hex_to_f): Constify s and p. * output.h (default_function_pro_epilogue): New. * real.h (real_hex_to_f): Update prototype. * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New. (TARGET_INITIALIZER): Update. * target.h (gcc_target): Add struct asm_out. * doc/tm.texi: Update. config: Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions in cpu/cpu.c, or rename old functions consistently. Take a HOST_WIDE INT not an int as the SIZE parameter. Remove now redundant macros and prototypes. Make new functions static. * 1750a/1750a.c: Similarly. * 1750a/1750a.h: Similarly. * a29k/a29k-protos.h: Similarly. * a29k/a29k.c: Similarly. * a29k/a29k.h: Similarly. * arc/arc-protos.h: Similarly. * arc/arc.c: Similarly. * arc/arc.h: Similarly. * arm/arm-protos.h: Similarly. * arm/arm.c: Similarly. * arm/arm.h: Similarly. * avr/avr-protos.h: Similarly. * avr/avr.c: Similarly. * avr/avr.h: Similarly. * clipper/clipper-protos.h: Similarly. * clipper/clipper.c: Similarly. * clipper/clipper.h: Similarly. * convex/convex.c: Similarly. * convex/convex.h: Similarly. * d30v/d30v-protos.h: Similarly. * d30v/d30v.c: Similarly. * d30v/d30v.h: Similarly. * d30v/d30v.md: Similarly. * dsp16xx/dsp16xx-protos.h: Similarly. * dsp16xx/dsp16xx.c: Similarly. * dsp16xx/dsp16xx.h: Similarly. * elxsi/elxsi.c: Similarly. * elxsi/elxsi.h: Similarly. * fr30/fr30.c: Similarly. * fr30/fr30.md: Similarly. * h8300/h8300-protos.h: Similarly. * h8300/h8300.c: Similarly. * h8300/h8300.h: Similarly. * i370/i370-protos.h: Similarly. * i370/i370.c: Similarly. * i370/i370.h: Similarly. * i386/i386.c: Similarly. * i386/osf1elf.h: Similarly. * i386/osfrose.h: Similarly. * i860/i860-protos.h: Similarly. * i860/i860.c: Similarly. * i860/i860.h: Similarly. * i960/i960-protos.h: Similarly. * i960/i960.c: Similarly. * i960/i960.h: Similarly. * ia64/ia64-protos.h: Similarly. * ia64/ia64.c: Similarly. * ia64/ia64.h: Similarly. * m32r/m32r-protos.h: Similarly. * m32r/m32r.c: Similarly. * m32r/m32r.h: Similarly. * m68hc11/m68hc11-protos.h: Similarly. * m68hc11/m68hc11.c: Similarly. * m68hc11/m68hc11.h: Similarly. * m68k/crds.h: Similarly. * m68k/dpx2.h: Similarly. * m68k/m68k-protos.h: Similarly. * m68k/m68k.c: Similarly. * m68k/m68k.h: Similarly. * m68k/news.h: Similarly. * m88k/m88k-protos.h: Similarly. * m88k/m88k.c: Similarly. * m88k/m88k.h: Similarly. * mips/mips-protos.h: Similarly. * mips/mips.c: Similarly. * mips/mips.h: Similarly. * ns32k/merlin.h: Similarly. * ns32k/ns32k.c: Similarly. * ns32k/ns32k.h: Similarly. * ns32k/tek6000.h: Similarly. * pa/pa-protos.h: Similarly. * pa/pa.c: Similarly. * pa/pa.h: Similarly. * pdp11/2bsd.h: Similarly. * pdp11/pdp11-protos.h: Similarly. * pdp11/pdp11.c: Similarly. * pdp11/pdp11.h: Similarly. * romp/romp-protos.h: Similarly. * romp/romp.c: Similarly. * romp/romp.h: Similarly. * rs6000/rs6000-protos.h: Similarly. * rs6000/rs6000.c: Similarly. * rs6000/rs6000.h: Similarly. * rs6000/sysv4.h: Similarly. * sh/sh-protos.h: Similarly. * sh/sh.c: Similarly. * sh/sh.h: Similarly. * sparc/sparc-protos.h: Similarly. * sparc/sparc.c: Similarly. * sparc/sparc.h: Similarly. * vax/vax.c: Similarly. * vax/vax.h: Similarly. * vax/vms.h: Similarly. * we32k/we32k.c: Similarly. * we32k/we32k.h: Similarly. From-SVN: r43817
164 lines
8.0 KiB
C
164 lines
8.0 KiB
C
/* Prototypes for exported functions defined in avr.c
|
|
|
|
Copyright (C) 2000, 2001 Free Software Foundation, Inc.
|
|
Contributed by Denis Chertykov (denisc@overta.ru)
|
|
|
|
This file is part of GNU CC.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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. */
|
|
|
|
|
|
extern int function_arg_regno_p PARAMS ((int r));
|
|
extern void asm_file_start PARAMS ((FILE *file));
|
|
extern void asm_file_end PARAMS ((FILE *file));
|
|
extern void avr_init_once PARAMS ((void));
|
|
extern void avr_override_options PARAMS ((void));
|
|
extern char * avr_change_section PARAMS ((char *sect_name));
|
|
extern int avr_ret_register PARAMS ((void));
|
|
extern enum reg_class class_likely_spilled_p PARAMS ((int c));
|
|
extern enum reg_class avr_regno_reg_class PARAMS ((int r));
|
|
extern enum reg_class avr_reg_class_from_letter PARAMS ((int c));
|
|
extern int frame_pointer_required_p PARAMS ((void));
|
|
extern void asm_globalize_label PARAMS ((FILE *file, const char *name));
|
|
extern void order_regs_for_local_alloc PARAMS ((void));
|
|
extern int initial_elimination_offset PARAMS ((int from, int to));
|
|
extern void progmem_section PARAMS ((void));
|
|
extern int mask_one_bit_p PARAMS ((HOST_WIDE_INT mask));
|
|
extern void gas_output_limited_string PARAMS ((FILE *file, const char *str));
|
|
extern void gas_output_ascii PARAMS ((FILE *file, const char *str,
|
|
size_t length));
|
|
#ifdef TREE_CODE
|
|
extern void asm_output_external PARAMS ((FILE *file, tree decl,
|
|
char *name));
|
|
extern void unique_section PARAMS ((tree decl, int reloc));
|
|
extern void encode_section_info PARAMS ((tree decl));
|
|
extern void asm_output_section_name PARAMS ((FILE *file, tree decl,
|
|
const char *name,
|
|
int reloc));
|
|
extern int avr_progmem_p PARAMS ((tree decl));
|
|
|
|
|
|
#ifdef RTX_CODE /* inside TREE_CODE */
|
|
extern rtx avr_function_value PARAMS ((tree type, tree func));
|
|
extern void init_cumulative_args PARAMS ((CUMULATIVE_ARGS *cum,
|
|
tree fntype, rtx libname,
|
|
int indirect));
|
|
extern rtx function_arg PARAMS ((CUMULATIVE_ARGS *cum,
|
|
enum machine_mode mode,
|
|
tree type, int named));
|
|
|
|
|
|
#endif /* RTX_CODE inside TREE_CODE */
|
|
|
|
#ifdef HAVE_MACHINE_MODES /* inside TREE_CODE */
|
|
extern void function_arg_advance PARAMS ((CUMULATIVE_ARGS *cum,
|
|
enum machine_mode mode, tree type,
|
|
int named));
|
|
#endif /* HAVE_MACHINE_MODES inside TREE_CODE*/
|
|
#endif /* TREE_CODE */
|
|
|
|
#ifdef RTX_CODE
|
|
extern void asm_output_external_libcall PARAMS ((FILE *file, rtx symref));
|
|
extern int legitimate_address_p PARAMS ((enum machine_mode mode, rtx x,
|
|
int strict));
|
|
extern void machine_dependent_reorg PARAMS ((rtx first_insn));
|
|
extern int compare_diff_p PARAMS ((rtx insn));
|
|
extern const char * output_movqi PARAMS ((rtx insn, rtx operands[], int *l));
|
|
extern const char * output_movhi PARAMS ((rtx insn, rtx operands[], int *l));
|
|
extern const char * out_movqi_r_mr PARAMS ((rtx insn, rtx op[], int *l));
|
|
extern const char * out_movqi_mr_r PARAMS ((rtx insn, rtx op[], int *l));
|
|
extern const char * out_movhi_r_mr PARAMS ((rtx insn, rtx op[], int *l));
|
|
extern const char * out_movhi_mr_r PARAMS ((rtx insn, rtx op[], int *l));
|
|
extern const char * out_movsi_r_mr PARAMS ((rtx insn, rtx op[], int *l));
|
|
extern const char * out_movsi_mr_r PARAMS ((rtx insn, rtx op[], int *l));
|
|
extern const char * output_movsisf PARAMS ((rtx insn, rtx operands[], int *l));
|
|
extern const char * out_tstsi PARAMS ((rtx insn, int *l));
|
|
extern const char * out_tsthi PARAMS ((rtx insn, int *l));
|
|
extern const char * ret_cond_branch PARAMS ((rtx x, int len, int reverse));
|
|
|
|
extern const char * ashlqi3_out PARAMS ((rtx insn, rtx operands[], int *len));
|
|
extern const char * ashlhi3_out PARAMS ((rtx insn, rtx operands[], int *len));
|
|
extern const char * ashlsi3_out PARAMS ((rtx insn, rtx operands[], int *len));
|
|
|
|
extern const char * ashrqi3_out PARAMS ((rtx insn, rtx operands[], int *len));
|
|
extern const char * ashrhi3_out PARAMS ((rtx insn, rtx operands[], int *len));
|
|
extern const char * ashrsi3_out PARAMS ((rtx insn, rtx operands[], int *len));
|
|
|
|
extern const char * lshrqi3_out PARAMS ((rtx insn, rtx operands[], int *len));
|
|
extern const char * lshrhi3_out PARAMS ((rtx insn, rtx operands[], int *len));
|
|
extern const char * lshrsi3_out PARAMS ((rtx insn, rtx operands[], int *len));
|
|
|
|
extern void avr_output_bld PARAMS ((rtx operands[], int bit_nr));
|
|
extern void avr_output_addr_vec_elt PARAMS ((FILE *stream, int value));
|
|
|
|
extern enum reg_class preferred_reload_class PARAMS ((rtx x,
|
|
enum reg_class class));
|
|
extern int avr_address_cost PARAMS ((rtx x));
|
|
extern int extra_constraint PARAMS ((rtx x, int c));
|
|
extern rtx legitimize_address PARAMS ((rtx x, rtx oldx,
|
|
enum machine_mode mode));
|
|
extern int adjust_insn_length PARAMS ((rtx insn, int len));
|
|
extern rtx avr_libcall_value PARAMS ((enum machine_mode mode));
|
|
extern const char * output_reload_inhi PARAMS ((rtx insn, rtx *operands,
|
|
int *len));
|
|
extern const char * output_reload_insisf PARAMS ((rtx insn, rtx *operands,
|
|
int *len));
|
|
extern int default_rtx_costs PARAMS ((rtx X, RTX_CODE code,
|
|
RTX_CODE outer_code));
|
|
extern void asm_output_char PARAMS ((FILE *file, rtx value));
|
|
extern void asm_output_short PARAMS ((FILE *file, rtx value));
|
|
extern void asm_output_byte PARAMS ((FILE *file, int value));
|
|
extern enum reg_class secondary_input_reload_class PARAMS ((enum reg_class,
|
|
enum machine_mode,
|
|
rtx));
|
|
extern void notice_update_cc PARAMS ((rtx body, rtx insn));
|
|
extern void print_operand PARAMS ((FILE *file, rtx x, int code));
|
|
extern void print_operand_address PARAMS ((FILE *file, rtx addr));
|
|
extern int reg_unused_after PARAMS ((rtx insn, rtx reg));
|
|
extern int _reg_unused_after PARAMS ((rtx insn, rtx reg));
|
|
extern int avr_jump_mode PARAMS ((rtx x, rtx insn));
|
|
extern int byte_immediate_operand PARAMS ((register rtx op,
|
|
enum machine_mode mode));
|
|
extern int test_hard_reg_class PARAMS ((enum reg_class class, rtx x));
|
|
extern int jump_over_one_insn_p PARAMS ((rtx insn, rtx dest));
|
|
|
|
extern int avr_hard_regno_mode_ok PARAMS ((int regno,
|
|
enum machine_mode mode));
|
|
extern int call_insn_operand PARAMS ((rtx op, enum machine_mode mode));
|
|
extern void final_prescan_insn PARAMS ((rtx insn, rtx *operand,
|
|
int num_operands));
|
|
extern int avr_simplify_comparision_p PARAMS ((enum machine_mode mode,
|
|
RTX_CODE operator, rtx x));
|
|
extern RTX_CODE avr_normalize_condition PARAMS ((RTX_CODE condition));
|
|
extern int compare_eq_p PARAMS ((rtx insn));
|
|
extern void out_shift_with_cnt PARAMS ((const char *template, rtx insn,
|
|
rtx operands[], int *len,
|
|
int t_len));
|
|
extern int const_int_pow2_p PARAMS ((rtx x));
|
|
extern int avr_peep2_scratch_safe PARAMS ((rtx reg_rtx));
|
|
#endif /* RTX_CODE */
|
|
|
|
#ifdef HAVE_MACHINE_MODES
|
|
extern int class_max_nregs PARAMS ((enum reg_class class,
|
|
enum machine_mode mode));
|
|
#endif /* HAVE_MACHINE_MODES */
|
|
|
|
#ifdef REAL_VALUE_TYPE
|
|
|
|
extern void asm_output_float PARAMS ((FILE *file, REAL_VALUE_TYPE n));
|
|
|
|
#endif
|