2 Copyright (C) 1999, 2000 Free Software Foundation, Inc.
3 Contributed by Cygnus Solutions.
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* External functions called. */
24 extern void override_options
PARAMS ((void));
26 extern int short_memory_operand
PARAMS ((rtx
, enum machine_mode
));
27 extern int long_memory_operand
PARAMS ((rtx
, enum machine_mode
));
28 extern int d30v_memory_operand
PARAMS ((rtx
, enum machine_mode
));
29 extern int single_reg_memory_operand
PARAMS ((rtx
, enum machine_mode
));
30 extern int const_addr_memory_operand
PARAMS ((rtx
, enum machine_mode
));
31 extern int call_operand
PARAMS ((rtx
, enum machine_mode
));
32 extern int gpr_operand
PARAMS ((rtx
, enum machine_mode
));
33 extern int accum_operand
PARAMS ((rtx
, enum machine_mode
));
34 extern int gpr_or_accum_operand
PARAMS ((rtx
, enum machine_mode
));
35 extern int cr_operand
PARAMS ((rtx
, enum machine_mode
));
36 extern int repeat_operand
PARAMS ((rtx
, enum machine_mode
));
37 extern int flag_operand
PARAMS ((rtx
, enum machine_mode
));
38 extern int br_flag_operand
PARAMS ((rtx
, enum machine_mode
));
39 extern int br_flag_or_constant_operand
PARAMS ((rtx
, enum machine_mode
));
40 extern int gpr_br_flag_operand
PARAMS ((rtx
, enum machine_mode
));
41 extern int f0_operand
PARAMS ((rtx
, enum machine_mode
));
42 extern int f1_operand
PARAMS ((rtx
, enum machine_mode
));
43 extern int carry_operand
PARAMS ((rtx
, enum machine_mode
));
44 extern int reg_or_0_operand
PARAMS ((rtx
, enum machine_mode
));
45 extern int gpr_or_signed6_operand
PARAMS ((rtx
, enum machine_mode
));
46 extern int gpr_or_unsigned5_operand
PARAMS ((rtx
, enum machine_mode
));
47 extern int gpr_or_unsigned6_operand
PARAMS ((rtx
, enum machine_mode
));
48 extern int gpr_or_constant_operand
PARAMS ((rtx
, enum machine_mode
));
49 extern int gpr_or_dbl_const_operand
PARAMS ((rtx
, enum machine_mode
));
50 extern int gpr_or_memory_operand
PARAMS ((rtx
, enum machine_mode
));
51 extern int move_input_operand
PARAMS ((rtx
, enum machine_mode
));
52 extern int move_output_operand
PARAMS ((rtx
, enum machine_mode
));
53 extern int signed6_operand
PARAMS ((rtx
, enum machine_mode
));
54 extern int unsigned5_operand
PARAMS ((rtx
, enum machine_mode
));
55 extern int unsigned6_operand
PARAMS ((rtx
, enum machine_mode
));
56 extern int bitset_operand
PARAMS ((rtx
, enum machine_mode
));
57 extern int condexec_test_operator
PARAMS ((rtx
, enum machine_mode
));
58 extern int condexec_branch_operator
PARAMS ((rtx
, enum machine_mode
));
59 extern int condexec_unary_operator
PARAMS ((rtx
, enum machine_mode
));
60 extern int condexec_addsub_operator
PARAMS ((rtx
, enum machine_mode
));
61 extern int condexec_binary_operator
PARAMS ((rtx
, enum machine_mode
));
62 extern int condexec_shiftl_operator
PARAMS ((rtx
, enum machine_mode
));
63 extern int condexec_extend_operator
PARAMS ((rtx
, enum machine_mode
));
64 extern int branch_zero_operator
PARAMS ((rtx
, enum machine_mode
));
65 extern int cond_move_dest_operand
PARAMS ((rtx
, enum machine_mode
));
66 extern int cond_move_operand
PARAMS ((rtx
, enum machine_mode
));
67 extern int cond_exec_operand
PARAMS ((rtx
, enum machine_mode
));
68 extern int srelational_si_operator
PARAMS ((rtx
, enum machine_mode
));
69 extern int urelational_si_operator
PARAMS ((rtx
, enum machine_mode
));
70 extern int relational_di_operator
PARAMS ((rtx
, enum machine_mode
));
72 extern d30v_stack_t
*d30v_stack_info
PARAMS ((void));
73 extern int direct_return
PARAMS ((void));
77 extern void d30v_init_cumulative_args
PARAMS ((CUMULATIVE_ARGS
*, tree
,
80 extern int d30v_function_arg_boundary
PARAMS ((enum machine_mode
, tree
));
82 extern rtx d30v_function_arg
PARAMS ((CUMULATIVE_ARGS
*,
86 extern int d30v_function_arg_partial_nregs
PARAMS ((CUMULATIVE_ARGS
*,
90 extern int d30v_function_arg_pass_by_reference
PARAMS ((CUMULATIVE_ARGS
*,
94 extern void d30v_function_arg_advance
PARAMS ((CUMULATIVE_ARGS
*,
100 extern rtx d30v_expand_builtin_saveregs
PARAMS ((void));
103 extern void d30v_setup_incoming_varargs
PARAMS ((CUMULATIVE_ARGS
*,
106 extern tree d30v_build_va_list
PARAMS ((void));
108 extern void d30v_expand_builtin_va_start
PARAMS ((tree
, rtx
));
109 extern rtx d30v_expand_builtin_va_arg
PARAMS ((tree
, tree
));
110 #endif /* RTX_CODE */
111 #endif /* TREE_CODE */
113 extern void d30v_expand_prologue
PARAMS ((void));
114 extern void d30v_expand_epilogue
PARAMS ((void));
115 extern void d30v_function_profiler
PARAMS ((FILE *, int));
117 extern void d30v_split_double
PARAMS ((rtx
, rtx
*, rtx
*));
118 extern void d30v_print_operand
PARAMS ((FILE *, rtx
, int));
119 extern void d30v_print_operand_address
PARAMS ((FILE *, rtx
));
121 extern int d30v_trampoline_size
PARAMS ((void));
123 extern void d30v_initialize_trampoline
PARAMS ((rtx
, rtx
, rtx
));
124 extern int d30v_legitimate_address_p
PARAMS ((enum machine_mode
, rtx
, int));
125 extern rtx d30v_legitimize_address
PARAMS ((rtx
, rtx
,
126 enum machine_mode
, int));
127 extern int d30v_mode_dependent_address_p
PARAMS ((rtx
));
128 extern rtx d30v_emit_comparison
PARAMS ((int, rtx
, rtx
, rtx
));
129 extern const char *d30v_move_2words
PARAMS ((rtx
*, rtx
));
130 extern int d30v_emit_cond_move
PARAMS ((rtx
, rtx
, rtx
, rtx
));
131 extern rtx d30v_return_addr
PARAMS ((void));
133 extern void d30v_init_expanders
PARAMS ((void));
134 extern void debug_stack_info
PARAMS ((d30v_stack_t
*));
137 /* External variables referenced */
139 /* Define the information needed to generate branch and scc insns. This is
140 stored from the compare operation. */
142 extern GTY(()) rtx d30v_compare_op0
;
143 extern GTY(()) rtx d30v_compare_op1
;
145 /* Define the information needed to modify the epilogue for EH. */
148 extern rtx d30v_eh_epilogue_sp_ofs
;