1 /* Compilation switch flag definitions for GNU CC.
2 Copyright (C) 1987, 1988 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 1, or (at your option)
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20 /* Name of the input .c file being compiled. */
21 extern char *main_input_filename
;
23 /* 1 => write gdb debugging output (using symout.c).
24 2 => write dbx debugging output (using dbxout.c).
25 3 => write sdb debugging output (using sdbout.c). */
26 enum debugger
{ NO_DEBUG
= 0, GDB_DEBUG
= 1, DBX_DEBUG
= 2, SDB_DEBUG
= 3,
27 EXTENDED_DBX_DEBUG
= 4, LINENO_DEBUG
};
29 extern enum debugger write_symbols
;
31 /* Nonzero means use GDB-only extensions of DBX format. */
32 extern int use_gdb_dbx_extensions
;
34 /* Nonzero means do optimizations. -opt. */
38 /* Nonzero means do stupid register allocation. -noreg.
39 Currently, this is 1 if `optimize' is 0. */
41 extern int obey_regdecls
;
43 /* Don't print functions as they are compiled and don't print
44 times taken by the various passes. -quiet. */
46 extern int quiet_flag
;
48 /* Don't print warning messages. -w. */
50 extern int inhibit_warnings
;
52 /* Do print extra warnings (such as for uninitialized variables). -W. */
54 extern int extra_warnings
;
56 /* Nonzero to warn about unused local variables. */
58 extern int warn_unused
;
60 /* Nonzero means warn about all declarations which shadow others. */
62 extern int warn_shadow
;
64 /* Warn if a switch on an enum fails to have a case for every enum value. */
66 extern int warn_switch
;
68 /* Warn if a type conversion is done that might have confusing results. */
70 extern int warn_conversion
;
72 /* Nonzero means warn about any identifiers that match in the first N
73 characters. The value N is in `id_clash_len'. */
75 extern int warn_id_clash
;
76 extern int id_clash_len
;
78 /* Nonzero means warn if inline function is too large. */
80 extern int warn_inline
;
82 /* Nonzero if generating code to do profiling. */
84 extern int profile_flag
;
86 /* Nonzero if generating code to do profiling on the basis of basic blocks. */
88 extern int profile_block_flag
;
90 /* Nonzero for -pedantic switch: warn about anything
91 that standard C or C++ forbids. */
95 /* Now the symbols that are set with `-f' switches. */
97 /* Nonzero means `char' should be signed. */
99 extern int flag_signed_char
;
101 /* Nonzero means give an enum type only as many bytes as it needs. */
103 extern int flag_short_enums
;
105 /* Nonzero for -fcaller-saves: allocate values in regs that need to
106 be saved across function calls, if that produces overall better code.
107 Optional now, so people can test it. */
109 extern int flag_caller_saves
;
111 /* Nonzero for -fpcc-struct-return: return values the same way PCC does. */
113 extern int flag_pcc_struct_return
;
115 /* Nonzero for -fforce-mem: load memory value into a register
116 before arithmetic on it. This makes better cse but slower compilation. */
118 extern int flag_force_mem
;
120 /* Nonzero for -fforce-addr: load memory address into a register before
121 reference to memory. This makes better cse but slower compilation. */
123 extern int flag_force_addr
;
125 /* Nonzero for -fdefer-pop: don't pop args after each function call;
126 instead save them up to pop many calls' args with one insns. */
128 extern int flag_defer_pop
;
130 /* Nonzero for -ffloat-store: don't allocate floats and doubles
131 in extended-precision registers. */
133 extern int flag_float_store
;
135 /* Nonzero for -fcombine-regs:
136 allow instruction combiner to combine an insn
137 that just copies one reg to another. */
139 extern int flag_combine_regs
;
141 /* Nonzero enables strength-reduction in loop.c. */
143 extern int flag_strength_reduce
;
145 /* Nonzero for -fcse-follow-jumps:
146 have cse follow jumps to do a more extensive job. */
148 extern int flag_cse_follow_jumps
;
150 /* Nonzero for -fwritable-strings:
151 store string constants in data segment and don't uniquize them. */
153 extern int flag_writable_strings
;
155 /* Nonzero means don't put addresses of constant functions in registers.
156 Used for compiling the Unix kernel, where strange substitutions are
157 done on the assembly output. */
159 extern int flag_no_function_cse
;
161 /* Nonzero for -fomit-frame-pointer:
162 don't make a frame pointer in simple functions that don't require one. */
164 extern int flag_omit_frame_pointer
;
166 /* Nonzero to inhibit use of define_optimization peephole opts. */
168 extern int flag_no_peephole
;
170 /* Nonzero means all references through pointers are volatile. */
172 extern int flag_volatile
;
174 /* Nonzero means make functions that look like good inline candidates
177 extern int flag_inline_functions
;
179 /* Nonzero for -fkeep-inline-functions: even if we make a function
180 go inline everywhere, keep its defintion around for debugging
183 extern int flag_keep_inline_functions
;
185 /* Nonzero if we are only using compiler to check syntax errors. */
187 extern int flag_syntax_only
;
189 /* Nonzero means make the text shared if supported. */
191 extern int flag_shared_data
;
193 /* Nonzero means put things in delayed-branch slots if supported. */
195 extern int flag_delayed_branch
;
197 /* Nonzero means do basic-block instruction scheduling. */
199 extern int flag_schedule_insns
;
201 /* Other basic status info about current function. */
203 /* Nonzero means current function must be given a frame pointer.
204 Set in stmt.c if anything is allocated on the stack there.
205 Set in reload1.c if anything is allocated on the stack there. */
207 extern int frame_pointer_needed
;
209 /* Nonzero if function being compiled receives nonlocal gotos
210 from nested functions. */
212 extern int current_function_has_nonlocal_label
;