Add prototypes.
[gcc.git] / gcc / output.h
1 /* Declarations for insn-output.c. These functions are defined in recog.c,
2 final.c, and varasm.c.
3 Copyright (C) 1987, 1991 Free Software Foundation, Inc.
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, 675 Mass Ave, Cambridge, MA 02139, USA. */
20
21 /* Output a string of assembler code, substituting insn operands.
22 Defined in final.c. */
23 extern void output_asm_insn PROTO((char *, rtx *));
24
25 /* Output a string of assembler code, substituting numbers, strings
26 and fixed syntactic prefixes. */
27 extern void asm_fprintf ();
28
29 #ifdef FILE
30 /* Print an integer constant expression in assembler syntax.
31 Addition and subtraction are the only arithmetic
32 that may appear in these expressions. */
33 extern void output_addr_const PROTO((FILE *, rtx));
34
35 /* Output a name (as found inside a symbol_ref) in assembler syntax. */
36 extern void assemble_name PROTO((FILE *, char *));
37 #endif
38
39 /* Replace a SUBREG with a REG or a MEM, based on the thing it is a
40 subreg of. */
41 extern rtx alter_subreg PROTO((rtx));
42
43 /* When outputting assembler code, indicates which alternative
44 of the constraints was actually satisfied. */
45 extern int which_alternative;
46
47 /* When outputting delayed branch sequences, this rtx holds the
48 sequence being output. It is null when no delayed branch
49 sequence is being output, so it can be used as a test in the
50 insn output code.
51
52 This variable is defined in final.c. */
53 extern rtx final_sequence;
54
55 /* Number of bytes of args popped by function being compiled on its return.
56 Zero if no bytes are to be popped.
57 May affect compilation of return insn or of function epilogue. */
58
59 extern int current_function_pops_args;
60
61 /* Nonzero if function being compiled needs to be given an address
62 where the value should be stored. */
63
64 extern int current_function_returns_struct;
65
66 /* Nonzero if function being compiled needs to
67 return the address of where it has put a structure value. */
68
69 extern int current_function_returns_pcc_struct;
70
71 /* Nonzero if function being compiled needs to be passed a static chain. */
72
73 extern int current_function_needs_context;
74
75 /* Nonzero if function being compiled can call setjmp. */
76
77 extern int current_function_calls_setjmp;
78
79 /* Nonzero if function being compiled can call longjmp. */
80
81 extern int current_function_calls_longjmp;
82
83 /* Nonzero if function being compiled can call alloca,
84 either as a subroutine or builtin. */
85
86 extern int current_function_calls_alloca;
87
88 /* Nonzero if function being compiled receives nonlocal gotos
89 from nested functions. */
90
91 extern int current_function_has_nonlocal_label;
92
93 /* Nonzero if function being compiled contains nested functions. */
94
95 extern int current_function_contains_functions;
96
97 /* Nonzero if the current function returns a pointer type */
98
99 extern int current_function_returns_pointer;
100
101 /* If function's args have a fixed size, this is that size, in bytes.
102 Otherwise, it is -1.
103 May affect compilation of return insn or of function epilogue. */
104
105 extern int current_function_args_size;
106
107 /* # bytes the prologue should push and pretend that the caller pushed them.
108 The prologue must do this, but only if parms can be passed in registers. */
109
110 extern int current_function_pretend_args_size;
111
112 /* # of bytes of outgoing arguments required to be pushed by the prologue.
113 If this is non-zero, it means that ACCUMULATE_OUTGOING_ARGS was defined
114 and no stack adjusts will be done on function calls. */
115
116 extern int current_function_outgoing_args_size;
117
118 /* Nonzero if current function uses varargs.h or equivalent.
119 Zero for functions that use stdarg.h. */
120
121 extern int current_function_varargs;
122
123 /* Quantities of various kinds of registers
124 used for the current function's args. */
125
126 extern CUMULATIVE_ARGS current_function_args_info;
127
128 /* Name of function now being compiled. */
129
130 extern char *current_function_name;
131
132 /* If non-zero, an RTL expression for that location at which the current
133 function returns its result. Usually equal to
134 DECL_RTL (DECL_RESULT (current_function_decl)). */
135
136 extern rtx current_function_return_rtx;
137
138 /* If some insns can be deferred to the delay slots of the epilogue, the
139 delay list for them is recorded here. */
140
141 extern rtx current_function_epilogue_delay_list;
142
143 /* Nonzero means generate position-independent code.
144 This is not fully implemented yet. */
145
146 extern int flag_pic;
147
148 /* This is nonzero if the current function uses pic_offset_table_rtx. */
149 extern int current_function_uses_pic_offset_table;
150
151 /* This is nonzero if the current function uses the constant pool. */
152 extern int current_function_uses_const_pool;
153
154 /* The line number of the beginning of the current function.
155 sdbout.c needs this so that it can output relative linenumbers. */
156
157 #ifdef SDB_DEBUGGING_INFO /* Avoid undef sym in certain broken linkers. */
158 extern int sdb_begin_function_line;
159 #endif
160
161 /* File in which assembler code is being written. */
162
163 #ifdef BUFSIZ /* The hope is that any kind of stdio.h must define BUFSIZ. */
164 extern FILE *asm_out_file;
165 #endif