s390.c: New.
[gcc.git] / gcc / config / s390 / s390-protos.h
1 /* Definitions of target machine for GNU compiler, for IBM S/390.
2 Copyright (C) 2000 Free Software Foundation, Inc.
3 Contributed by Hartmut Penner (hpenner@de.ibm.com)
4
5 This file is part of GNU CC.
6
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)
10 any later version.
11
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.
16
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. */
21
22 /* Declare functions in s390.c and linux.c */
23
24 #ifdef RTX_CODE
25
26 #ifdef TREE_CODE
27 extern void init_cumulative_args PARAMS ((CUMULATIVE_ARGS *, tree, rtx, int));
28 extern void s390_va_start PARAMS ((int, tree, rtx));
29
30 #endif /* TREE_CODE */
31
32 extern int fp_operand PARAMS ((rtx, enum machine_mode));
33 extern int s_operand PARAMS ((rtx, enum machine_mode));
34 extern int larl_operand PARAMS ((rtx, enum machine_mode));
35 extern int r_or_im8_operand PARAMS ((rtx, enum machine_mode));
36 extern int r_or_s_operand PARAMS ((rtx, enum machine_mode));
37 extern int r_or_s_or_im8_operand PARAMS ((rtx, enum machine_mode));
38 extern int r_or_x_or_im16_operand PARAMS ((rtx, enum machine_mode));
39 extern int bras_sym_operand PARAMS ((rtx, enum machine_mode));
40 extern int load_multiple_operation PARAMS ((rtx, enum machine_mode));
41 extern int store_multiple_operation PARAMS ((rtx, enum machine_mode));
42 extern int dead_p PARAMS ((rtx, rtx));
43 extern void print_operand PARAMS ((FILE *, rtx, char));
44 extern void print_operand_address PARAMS ((FILE *, rtx));
45 extern int legitimate_pic_operand_p PARAMS ((rtx));
46 extern int legitimate_constant_p PARAMS ((rtx));
47
48 extern int unsigned_comparison_operator PARAMS ((rtx));
49 extern int unsigned_jump_follows_p PARAMS ((rtx));
50
51 extern void update_cc PARAMS ((rtx, rtx));
52
53 extern void s390_initialize_trampoline PARAMS ((rtx, rtx, rtx));
54 extern void s390_output_symbolic_const PARAMS ((FILE *, rtx));
55 extern int s390_adjust_cost PARAMS ((rtx, rtx, rtx, int));
56
57 extern int s390_stop_dump_lit_p PARAMS ((rtx));
58 extern void s390_dump_literal_pool PARAMS ((rtx, rtx));
59 extern void s390_expand_eh_epilogue PARAMS ((rtx, rtx, rtx));
60 extern void s390_asm_output_external_libcall PARAMS ((FILE *, rtx));
61
62 #endif /* RTX_CODE */
63
64 #ifdef TREE_CODE
65 extern void s390_function_arg_advance PARAMS ((CUMULATIVE_ARGS *,
66 enum machine_mode,
67 tree, int));
68 extern struct rtx_def *s390_function_arg PARAMS ((CUMULATIVE_ARGS *,
69 enum machine_mode, tree, int));
70 extern int s390_function_arg_partial_nregs PARAMS ((CUMULATIVE_ARGS *,
71 enum machine_mode, tree, int));
72 extern int s390_function_arg_pass_by_reference PARAMS ((enum machine_mode, tree));
73 extern void setup_incoming_varargs PARAMS ((CUMULATIVE_ARGS *,
74 enum machine_mode, tree,
75 int *, int));
76 extern struct rtx_def *s390_va_arg PARAMS ((tree, tree));
77 extern union tree_node *s390_build_va_list PARAMS ((void));
78 extern void s390_asm_output_pool_prologue PARAMS ((FILE *, char *, tree, int));
79 extern void encode_section_info PARAMS ((tree));
80
81 #endif /* TREE_CODE */
82
83
84 extern void s390_trampoline_template PARAMS ((FILE *));
85 extern void s390_function_prologue PARAMS ((FILE *, HOST_WIDE_INT));
86 extern void s390_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
87 extern void s390_final_chunkify PARAMS ((int));
88 extern int s390_arg_frame_offset PARAMS ((void));