8sa1-gcc/gcc/config/pa/pa-protos.h

165 lines
7.6 KiB
C
Raw Normal View History

/* Prototypes for pa.c functions used in the md file & elsewhere.
Copyright (C) 2000 Free Software Foundation, Inc.
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. */
#ifdef RTX_CODE
/* Prototype function used in MACHINE_DEPENDENT_REORG macro. */
extern void pa_reorg PARAMS ((rtx));
/* Prototype function used in various macros. */
extern int symbolic_operand PARAMS ((rtx, enum machine_mode));
/* Used in insn-*.c. */
extern int following_call PARAMS ((rtx));
extern int function_label_operand PARAMS ((rtx, enum machine_mode));
extern int lhs_lshift_cint_operand PARAMS ((rtx, enum machine_mode));
#ifdef TREE_CODE
extern void hppa_va_start PARAMS ((int, tree, rtx));
extern rtx hppa_va_arg PARAMS ((tree, tree));
#endif /* TREE_CODE */
extern rtx hppa_legitimize_address PARAMS ((rtx, rtx, enum machine_mode));
/* Define functions in pa.c and used in insn-output.c. */
extern const char *output_and PARAMS ((rtx *));
extern const char *output_ior PARAMS ((rtx *));
extern const char *output_move_double PARAMS ((rtx *));
extern const char *output_fp_move_double PARAMS ((rtx *));
extern const char *output_block_move PARAMS ((rtx *, int));
extern const char *output_cbranch PARAMS ((rtx *, int, int, int, rtx));
extern const char *output_bb PARAMS ((rtx *, int, int, int, rtx, int));
extern const char *output_bvb PARAMS ((rtx *, int, int, int, rtx, int));
extern const char *output_dbra PARAMS ((rtx *, rtx, int));
extern const char *output_movb PARAMS ((rtx *, rtx, int, int));
extern const char *output_parallel_movb PARAMS ((rtx *, int));
extern const char *output_parallel_addb PARAMS ((rtx *, int));
long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64. * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64. * pa/pa-protos.h (output_call): Add additional argument indicating if the call is a sibling/tail call. (compute_zdepdi_operands, output_64bit_and): Prototype new functions. (compute_64bit_ior, cmpib_comparison_operator): Likewise. (function_arg, function_arg_partial_nregs): Likewise * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT. (emit_move_sequence): Zero extend certain constants as needed for TARGET_64BIT. (compute_zdepdi_operands, output_64bit_and): New functions. (output_64bit_ior, function_arg): Likewise. (cmpib_comparison_operator, function_arg_partial_nregs): Likewise. (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT. (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise. (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise. (output_bvb): Likewise. (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT. (output_call): New argument 'sibcall'. Generate sibcall sequences as needed. (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For (ouput_arg_descriptor): Do not emit argument descriptors for TARGET_64BIT. * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already defined. (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define. (FUNCTION_OK_FOR_SIBALL): Define. (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define. (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise. (CPP_SPEC): Use new spec infrastructure. (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT. (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise. (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise. (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise. (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise. (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise. (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise. (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise. (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise. (FUNCTION_ARG); Call out to C code. (FUNCTION_ARG_PARTIAL_NREGS): Likewise. (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define. (MIN_UNITS_PER_WORD): Likewise. * pa/pa.md (cmpdi): New expander. (scc patterns, movstrsi): Not available for TARGET_64BIT. (64bit conditional arithmetic): New patterns. (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns. (movsicc): Not available if modes on all the operands to not match. (movdicc): New expander and associated patterns. (64bit branches): New patterns. (pre_load, post_store): Generate appropriate code for TARGET_64BIT. (pre_ldd, post_std): New patterns. (64bit addil, load low part): New patterns. (special movsf constant): Not available for TARGET_64BIT. (movsf, movdf expanders): Force constants into memory. (32bit movdf/movdi patterns): Disable for TARGET_64BIT. (64bit movdf/movdi patterns): New patterns. (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns for TARGET_64BIT. (extendqidi2, extendhidi2, extendsidi2): Similarly. (adddi3 expander): Allow "arith_operand" for second input. (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT. (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT. (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too. (muldi3): New expander for TARGET_64BIT. (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2) for TARGET_64BIT. (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable patterns for TARGET_64BIT. (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New patterns for TARGET_64BIT. (64bit bit insertion/extractions): New patterns for TARGET_64BIT. (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT. (sibcall_epilogue): New expander. (casesi): Tweak for TARGET_64BIT. (call expanders): Set & use the outgoing argument pointer. Use the 64bit call patterns as needed. Add additional arg to output_call. (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern. (sibcall, sibcall_internal_symref): New expanders. (sibcall_value, sibcall_value_internal_symref (interspace_jump): Turn into an expander + matching patterns. (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT. * pa/pa64-regs.h: Eliminate trigraph sequences. * pa/pa64-start.h (TARGET_PA_20): Fix typo. From-SVN: r33082
2000-04-11 16:02:46 -04:00
extern const char *output_call PARAMS ((rtx, rtx, int));
extern const char *output_millicode_call PARAMS ((rtx, rtx));
extern const char *output_mul_insn PARAMS ((int, rtx));
extern const char *output_div_insn PARAMS ((rtx *, int, rtx));
extern const char *output_mod_insn PARAMS ((int, rtx));
extern const char *singlemove_string PARAMS ((rtx *));
extern void output_arg_descriptor PARAMS ((rtx));
extern void output_global_address PARAMS ((FILE *, rtx, int));
extern void print_operand PARAMS ((FILE *, rtx, int));
extern rtx legitimize_pic_address PARAMS ((rtx, enum machine_mode, rtx));
extern struct rtx_def *gen_cmp_fp PARAMS ((enum rtx_code, rtx, rtx));
stringpool.c: New file. * stringpool.c: New file. * ggc-common.c (ggc_mark_string_ptr, ggc_add_string_root): Delete. (ggc_alloc_string): Now in stringpool.o. * ggc-page.c, ggc-simple.c: Do not define or allocate empty_string. * ggc.h: Delete prototype of ggc_add_string_root. #define ggc_add_string_root and ggc_mark_string to nothing. Prototype init_stringpool and stringpool_statistics. (ggc_alloc_string): Returns a const char *. * tree.c (hash_table, do_identifier_warnings): Delete. (init_obstacks): Don't initialize the identifier hash table. (get_identifier, maybe_get_identifier, start_identifier_warnings, set_identifier_size): Now in stringpool.c. * tree.h (struct tree_string): Constify pointer field. (approx_sqrt): Prototype. * Makefile.in (stringpool.o): Add rule, mention in OBJS. * toplev.c (approx_sqrt): New function. (compile_file): Call stringpool_statistics if mem_report is on. (main): Call init_stringpool. * builtins.c (c_strlen), c-decl.c (finish_decl), c-lex.c (process_directive), c-typeck.c (constructor_asmspec, struct initializer_stack, start_init), except.c (create_rethrow_ref), stmt.c (digit_strings), toplev.c (decode_f_option), tree.c (built_in_filename), varasm,c (in_named_name, assemble_static_space, struct constant_descriptor, struct deferred_string, struct pool_constant, force_const_mem), i386.c (pic_label_name, global_offset_table_name), rs6000.c (rs6000_emit_prologue, rs6000_emit_epilogue) : Constify a char *. * c-common.c (combine_strings): Combine strings in scratch buffer, then pass to build_string. * optabs.c (init_libfuncs), profile.c (init_edge_profiler, output_func_start_profiler), stmt.c (init_stmt), alpha.c (alpha_need_linkage), arm.c (arm_encode_call_attribute), i386.c (load_pic_register), ia64.c (ia64_encode_section_info), rs6000.c (rs6000_encode_section_info): Create string in scratch buffer, then pass to ggc_alloc_string. * stmt.c (expand_asm_operands): If we must adjust the constraint strings, do so by creating a new one, not by modifying the old one in place. Constify some char *s. * config/pa/pa.c (hppa_encode_label): Drop unnecessary second argument. Create string in scratch buffer, then pass to ggc_alloc_string. * config/pa/pa-protos.h: Update prototype. * config/pa/elf.h, config/pa/pa.h, config/pa/som.h: hppa_encode_label takes only one argument. * c-parse.in (if_prefix): Find the filename and line number at $-2 and $-1 respectively. * diagnostic.c (error_recursion): Add missing newline, use fputs, translate string. cp: * lex.c (struct impl_files, internal_filename): Constify a char *. java: * jcf-parse.c (get_constant), parse.y (do_merge_string_cste): Create string in scratch buffer, then pass to build_string. From-SVN: r37514
2000-11-17 01:05:31 -05:00
extern void hppa_encode_label PARAMS ((rtx));
extern int arith11_operand PARAMS ((rtx, enum machine_mode));
extern int symbolic_expression_p PARAMS ((rtx));
extern int hppa_address_cost PARAMS ((rtx));
extern int symbolic_memory_operand PARAMS ((rtx, enum machine_mode));
extern int pa_adjust_cost PARAMS ((rtx, rtx, rtx, int));
extern int pa_adjust_insn_length PARAMS ((rtx, int));
extern int int11_operand PARAMS ((rtx, enum machine_mode));
extern int reg_or_cint_move_operand PARAMS ((rtx, enum machine_mode));
extern int arith5_operand PARAMS ((rtx, enum machine_mode));
extern int uint5_operand PARAMS ((rtx, enum machine_mode));
extern int pic_label_operand PARAMS ((rtx, enum machine_mode));
extern int plus_xor_ior_operator PARAMS ((rtx, enum machine_mode));
extern int basereg_operand PARAMS ((rtx, enum machine_mode));
extern int shadd_operand PARAMS ((rtx, enum machine_mode));
extern int arith_operand PARAMS ((rtx, enum machine_mode));
extern int read_only_operand PARAMS ((rtx, enum machine_mode));
extern int move_operand PARAMS ((rtx, enum machine_mode));
extern int and_operand PARAMS ((rtx, enum machine_mode));
extern int ior_operand PARAMS ((rtx, enum machine_mode));
extern int arith32_operand PARAMS ((rtx, enum machine_mode));
extern int uint32_operand PARAMS ((rtx, enum machine_mode));
extern int reg_or_nonsymb_mem_operand PARAMS ((rtx, enum machine_mode));
extern int reg_or_0_operand PARAMS ((rtx, enum machine_mode));
extern int reg_or_0_or_nonsymb_mem_operand PARAMS ((rtx, enum machine_mode));
extern int pre_cint_operand PARAMS ((rtx, enum machine_mode));
extern int post_cint_operand PARAMS ((rtx, enum machine_mode));
extern int div_operand PARAMS ((rtx, enum machine_mode));
extern int int5_operand PARAMS ((rtx, enum machine_mode));
extern int movb_comparison_operator PARAMS ((rtx, enum machine_mode));
extern int ireg_or_int5_operand PARAMS ((rtx, enum machine_mode));
extern int fmpyaddoperands PARAMS ((rtx *));
extern int fmpysuboperands PARAMS ((rtx *));
extern int call_operand_address PARAMS ((rtx, enum machine_mode));
extern int ior_operand PARAMS ((rtx, enum machine_mode));
extern void emit_bcond_fp PARAMS ((enum rtx_code, rtx));
extern int emit_move_sequence PARAMS ((rtx *, enum machine_mode, rtx));
extern int emit_hpdiv_const PARAMS ((rtx *, int));
extern int is_function_label_plus_const PARAMS ((rtx));
extern int jump_in_call_delay PARAMS ((rtx));
extern enum reg_class secondary_reload_class PARAMS ((enum reg_class,
enum machine_mode, rtx));
/* Declare functions defined in pa.c and used in templates. */
extern struct rtx_def *return_addr_rtx PARAMS ((int, rtx));
extern int fp_reg_operand PARAMS ((rtx, enum machine_mode));
extern int arith_double_operand PARAMS ((rtx, enum machine_mode));
extern int ireg_operand PARAMS ((rtx, enum machine_mode));
extern int lhs_lshift_operand PARAMS ((rtx, enum machine_mode));
extern int pc_or_label_operand PARAMS ((rtx, enum machine_mode));
#ifdef ARGS_SIZE_RTX
/* expr.h defines ARGS_SIZE_RTX and `enum direction' */
#ifdef TREE_CODE
extern enum direction function_arg_padding PARAMS ((enum machine_mode, tree));
#endif
#endif /* ARGS_SIZE_RTX */
extern int non_hard_reg_operand PARAMS ((rtx, enum machine_mode));
extern int eq_neq_comparison_operator PARAMS ((rtx, enum machine_mode));
extern int insn_refs_are_delayed PARAMS ((rtx));
#endif /* RTX_CODE */
/* Prototype function used in macro ASM_OUTPUT_MI_THUNK. */
extern void pa_output_function_prologue PARAMS ((FILE *, HOST_WIDE_INT));
/* Prototype function used in macro CONST_OK_FOR_LETTER_P. */
extern int zdepi_cint_p PARAMS ((unsigned HOST_WIDE_INT));
extern struct rtx_def *hppa_builtin_saveregs PARAMS ((void));
extern void output_deferred_plabels PARAMS ((FILE *));
extern void override_options PARAMS ((void));
extern void output_ascii PARAMS ((FILE *, const unsigned char *, int));
extern int compute_frame_size PARAMS ((int, int *));
extern int and_mask_p PARAMS ((unsigned HOST_WIDE_INT));
extern int cint_ok_for_move PARAMS ((HOST_WIDE_INT));
extern void hppa_expand_prologue PARAMS ((void));
extern void hppa_expand_epilogue PARAMS ((void));
extern int hppa_can_use_return_insn_p PARAMS ((void));
extern int ior_mask_p PARAMS ((unsigned HOST_WIDE_INT));
long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64. * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64. * pa/pa-protos.h (output_call): Add additional argument indicating if the call is a sibling/tail call. (compute_zdepdi_operands, output_64bit_and): Prototype new functions. (compute_64bit_ior, cmpib_comparison_operator): Likewise. (function_arg, function_arg_partial_nregs): Likewise * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT. (emit_move_sequence): Zero extend certain constants as needed for TARGET_64BIT. (compute_zdepdi_operands, output_64bit_and): New functions. (output_64bit_ior, function_arg): Likewise. (cmpib_comparison_operator, function_arg_partial_nregs): Likewise. (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT. (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise. (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise. (output_bvb): Likewise. (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT. (output_call): New argument 'sibcall'. Generate sibcall sequences as needed. (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For (ouput_arg_descriptor): Do not emit argument descriptors for TARGET_64BIT. * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already defined. (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define. (FUNCTION_OK_FOR_SIBALL): Define. (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define. (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise. (CPP_SPEC): Use new spec infrastructure. (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT. (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise. (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise. (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise. (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise. (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise. (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise. (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise. (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise. (FUNCTION_ARG); Call out to C code. (FUNCTION_ARG_PARTIAL_NREGS): Likewise. (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define. (MIN_UNITS_PER_WORD): Likewise. * pa/pa.md (cmpdi): New expander. (scc patterns, movstrsi): Not available for TARGET_64BIT. (64bit conditional arithmetic): New patterns. (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns. (movsicc): Not available if modes on all the operands to not match. (movdicc): New expander and associated patterns. (64bit branches): New patterns. (pre_load, post_store): Generate appropriate code for TARGET_64BIT. (pre_ldd, post_std): New patterns. (64bit addil, load low part): New patterns. (special movsf constant): Not available for TARGET_64BIT. (movsf, movdf expanders): Force constants into memory. (32bit movdf/movdi patterns): Disable for TARGET_64BIT. (64bit movdf/movdi patterns): New patterns. (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns for TARGET_64BIT. (extendqidi2, extendhidi2, extendsidi2): Similarly. (adddi3 expander): Allow "arith_operand" for second input. (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT. (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT. (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too. (muldi3): New expander for TARGET_64BIT. (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2) for TARGET_64BIT. (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable patterns for TARGET_64BIT. (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New patterns for TARGET_64BIT. (64bit bit insertion/extractions): New patterns for TARGET_64BIT. (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT. (sibcall_epilogue): New expander. (casesi): Tweak for TARGET_64BIT. (call expanders): Set & use the outgoing argument pointer. Use the 64bit call patterns as needed. Add additional arg to output_call. (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern. (sibcall, sibcall_internal_symref): New expanders. (sibcall_value, sibcall_value_internal_symref (interspace_jump): Turn into an expander + matching patterns. (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT. * pa/pa64-regs.h: Eliminate trigraph sequences. * pa/pa64-start.h (TARGET_PA_20): Fix typo. From-SVN: r33082
2000-04-11 16:02:46 -04:00
extern void compute_zdepdi_operands PARAMS ((unsigned HOST_WIDE_INT,
unsigned *));
#ifdef RTX_CODE
extern const char * output_64bit_and PARAMS ((rtx *));
extern const char * output_64bit_ior PARAMS ((rtx *));
long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64. * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64. * pa/pa-protos.h (output_call): Add additional argument indicating if the call is a sibling/tail call. (compute_zdepdi_operands, output_64bit_and): Prototype new functions. (compute_64bit_ior, cmpib_comparison_operator): Likewise. (function_arg, function_arg_partial_nregs): Likewise * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT. (emit_move_sequence): Zero extend certain constants as needed for TARGET_64BIT. (compute_zdepdi_operands, output_64bit_and): New functions. (output_64bit_ior, function_arg): Likewise. (cmpib_comparison_operator, function_arg_partial_nregs): Likewise. (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT. (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise. (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise. (output_bvb): Likewise. (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT. (output_call): New argument 'sibcall'. Generate sibcall sequences as needed. (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For (ouput_arg_descriptor): Do not emit argument descriptors for TARGET_64BIT. * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already defined. (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define. (FUNCTION_OK_FOR_SIBALL): Define. (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define. (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise. (CPP_SPEC): Use new spec infrastructure. (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT. (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise. (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise. (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise. (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise. (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise. (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise. (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise. (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise. (FUNCTION_ARG); Call out to C code. (FUNCTION_ARG_PARTIAL_NREGS): Likewise. (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define. (MIN_UNITS_PER_WORD): Likewise. * pa/pa.md (cmpdi): New expander. (scc patterns, movstrsi): Not available for TARGET_64BIT. (64bit conditional arithmetic): New patterns. (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns. (movsicc): Not available if modes on all the operands to not match. (movdicc): New expander and associated patterns. (64bit branches): New patterns. (pre_load, post_store): Generate appropriate code for TARGET_64BIT. (pre_ldd, post_std): New patterns. (64bit addil, load low part): New patterns. (special movsf constant): Not available for TARGET_64BIT. (movsf, movdf expanders): Force constants into memory. (32bit movdf/movdi patterns): Disable for TARGET_64BIT. (64bit movdf/movdi patterns): New patterns. (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns for TARGET_64BIT. (extendqidi2, extendhidi2, extendsidi2): Similarly. (adddi3 expander): Allow "arith_operand" for second input. (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT. (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT. (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too. (muldi3): New expander for TARGET_64BIT. (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2) for TARGET_64BIT. (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable patterns for TARGET_64BIT. (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New patterns for TARGET_64BIT. (64bit bit insertion/extractions): New patterns for TARGET_64BIT. (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT. (sibcall_epilogue): New expander. (casesi): Tweak for TARGET_64BIT. (call expanders): Set & use the outgoing argument pointer. Use the 64bit call patterns as needed. Add additional arg to output_call. (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern. (sibcall, sibcall_internal_symref): New expanders. (sibcall_value, sibcall_value_internal_symref (interspace_jump): Turn into an expander + matching patterns. (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT. * pa/pa64-regs.h: Eliminate trigraph sequences. * pa/pa64-start.h (TARGET_PA_20): Fix typo. From-SVN: r33082
2000-04-11 16:02:46 -04:00
extern int cmpib_comparison_operator PARAMS ((rtx, enum machine_mode));
#endif
#ifdef TREE_CODE
extern int reloc_needed PARAMS ((tree));
long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64. * pa/long-double.h (FIX_TRUNCTFSI2_LIBCALL): Tweak for PA64. * pa/pa-protos.h (output_call): Add additional argument indicating if the call is a sibling/tail call. (compute_zdepdi_operands, output_64bit_and): Prototype new functions. (compute_64bit_ior, cmpib_comparison_operator): Likewise. (function_arg, function_arg_partial_nregs): Likewise * pa/pa.c (override_options): Always set flag_pic for TARGET_64BIT. (emit_move_sequence): Zero extend certain constants as needed for TARGET_64BIT. (compute_zdepdi_operands, output_64bit_and): New functions. (output_64bit_ior, function_arg): Likewise. (cmpib_comparison_operator, function_arg_partial_nregs): Likewise. (compute_frame_size, hppa_expand_prologue): Handle TARGET_64BIT. (hppa_expand_epilogue, return_addr_rtx, hppa_va_arg): Likewise. (hppa_builtin_saveregs, output_cbranch, output_bb): Likewise. (output_bvb): Likewise. (output_millicode_call): Return pointer is in %r2 for TARGET_64BIT. (output_call): New argument 'sibcall'. Generate sibcall sequences as needed. (print_operand); Handle cases 'Q', 'p', and 'z' for TARGET_64BIT. For (ouput_arg_descriptor): Do not emit argument descriptors for TARGET_64BIT. * pa/pa.h (TARGET_PA_11, TARGET_PA_20): Only define if not already defined. (TARGET_64BIT, PROMOTE_FUNCTION_RETURN): Define. (FUNCTION_OK_FOR_SIBALL): Define. (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC): Define. (CPP_CPU_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS, EXTRA_SPECS): Likewise. (CPP_SPEC): Use new spec infrastructure. (BITS_PER_WORD, UNITS_PER_WORD): Handle TARGET_64BIT. (STACK_BOUNDARY, FUNCTION_BOUNDARY, PIC_OFFSET_TABLE_REGNUM): Likewise. (RETURN_IN_MEMORY, EXTRA_CONSTRAINT, FIRST_PARM_OFFSET): Likewise. (REG_PARM_STACK_SPACE, STACK_POINTER_OFFSET): Likewise. (STACK_DYNAMIC_OFFSET, FUNCTION_VALUE): Likewise. (FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_CALLEE_COPIES): Likewise. (TRAMPOLINE_TEMPLATE, TRAMPOLINE_SIZE): Likewise. (INITIALIZE_TRAMPOLINE, LEGITIMATE_CONSTANT_P): Likewise. (CONST_OK_FOR_LETTER_P, MOVE_RATIO): Likewise. (FUNCTION_ARG); Call out to C code. (FUNCTION_ARG_PARTIAL_NREGS): Likewise. (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Define. (MIN_UNITS_PER_WORD): Likewise. * pa/pa.md (cmpdi): New expander. (scc patterns, movstrsi): Not available for TARGET_64BIT. (64bit conditional arithmetic): New patterns. (absdi2, smindi3, umindi3, smaxdi3, umaxdi3): New patterns. (movsicc): Not available if modes on all the operands to not match. (movdicc): New expander and associated patterns. (64bit branches): New patterns. (pre_load, post_store): Generate appropriate code for TARGET_64BIT. (pre_ldd, post_std): New patterns. (64bit addil, load low part): New patterns. (special movsf constant): Not available for TARGET_64BIT. (movsf, movdf expanders): Force constants into memory. (32bit movdf/movdi patterns): Disable for TARGET_64BIT. (64bit movdf/movdi patterns): New patterns. (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New patterns for TARGET_64BIT. (extendqidi2, extendhidi2, extendsidi2): Similarly. (adddi3 expander): Allow "arith_operand" for second input. (32bit adddi3, subdi3, uaddcm): Disable for TARGET_64BIT. (64bit adddi3, subsi3, uaddcm): New patterns for TARGET_64BIT. (mulsi3 expander): Revamp slightly so it supports TARGET_64BIT too. (muldi3): New expander for TARGET_64BIT. (divsi3, udivsi3, modsi3, umodsi3): Fourth operand must be (reg:SI 2) for TARGET_64BIT. (32bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm): Disable patterns for TARGET_64BIT. (64bit anddi3, iordi3, xordi3, andcm, negdi2, uaddcm, shadd): New patterns for TARGET_64BIT. (64bit bit insertion/extractions): New patterns for TARGET_64BIT. (64bit shifts/rotates): New patterns/expanders for TARGET_64BIT. (sibcall_epilogue): New expander. (casesi): Tweak for TARGET_64BIT. (call expanders): Set & use the outgoing argument pointer. Use the 64bit call patterns as needed. Add additional arg to output_call. (call_internal_reg_64bit, call_value_internal_reg_64bit): New pattern. (sibcall, sibcall_internal_symref): New expanders. (sibcall_value, sibcall_value_internal_symref (interspace_jump): Turn into an expander + matching patterns. (canonicalize_funcptr_for_compare): Not needed for TARGET_64BIT. * pa/pa64-regs.h: Eliminate trigraph sequences. * pa/pa64-start.h (TARGET_PA_20): Fix typo. From-SVN: r33082
2000-04-11 16:02:46 -04:00
#ifdef RTX_CODE
extern rtx function_arg PARAMS ((CUMULATIVE_ARGS *, enum machine_mode,
tree, int, int));
#endif
extern int function_arg_partial_nregs PARAMS ((CUMULATIVE_ARGS *,
enum machine_mode,
tree, int));
#endif /* TREE_CODE */