the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#ifndef GCC_FLAGS_H
+#define GCC_FLAGS_H
+
/* Name of the input .c file being compiled. */
-extern char *main_input_filename;
+extern const char *main_input_filename;
enum debug_info_type
{
extern int quiet_flag;
+/* Print times taken by the various passes. -ftime-report. */
+
+extern int time_report;
+
+/* Print memory still in use at end of compilation (which may have little
+ to do with peak memory consumption). -fmem-report. */
+
+extern int mem_report;
+
/* Don't print warning messages. -w. */
extern int inhibit_warnings;
+/* Don't suppress warnings from system headers. -Wsystem-headers. */
+
+extern int warn_system_headers;
+
/* Do print extra warnings (such as for uninitialized variables). -W. */
extern int extra_warnings;
-/* Nonzero to warn about unused local variables. */
+/* Nonzero to warn about unused variables, functions et.al. Use
+ set_Wunused() to update the -Wunused-* flags that correspond to the
+ -Wunused option. */
+
+extern void set_Wunused PARAMS ((int setting));
-extern int warn_unused;
+extern int warn_unused_function;
+extern int warn_unused_label;
+extern int warn_unused_parameter;
+extern int warn_unused_variable;
+extern int warn_unused_value;
/* Nonzero to warn about code which is never reached. */
extern int warn_return_type;
+/* Warn about functions which might be candidates for attribute noreturn. */
+
+extern int warn_missing_noreturn;
+
/* Nonzero means warn about pointer casts that increase the required
alignment of the target type (and might therefore lead to a crash
due to a misaligned access). */
extern int warn_cast_align;
-/* Nonzero means warn that dbx info for template class methods isn't fully
- supported yet. */
-
-extern int warn_template_debugging;
-
/* Nonzero means warn about any identifiers that match in the first N
characters. The value N is in `id_clash_len'. */
extern int warn_padded;
+/* Warn when an optimization pass is disabled. */
+
+extern int warn_disabled_optimization;
+
/* Nonzero if generating code to do profiling. */
extern int profile_flag;
/* 0 means straightforward implementation of complex divide acceptable.
1 means wide ranges of inputs must work for complex divide.
- 2 means C9X-like requirements for complex divide (not yet implemented). */
+ 2 means C99-like requirements for complex divide (not yet implemented). */
extern int flag_complex_divide_method;
extern int flag_schedule_speculative_load;
extern int flag_schedule_speculative_load_dangerous;
-/* flag_on_branch_count_reg means try to replace add-1,compare,branch tupple
+/* flag_branch_on_count_reg means try to replace add-1,compare,branch tupple
by a cheaper branch, on a count register. */
extern int flag_branch_on_count_reg;
+/* This option is set to 1 on -fsingle-precision-constant option which is
+ used to convert the floating point constants to single precision
+ constants. */
+
+extern int flag_single_precision_constant;
/* Nonzero means put things in delayed-branch slots if supported. */
extern int flag_debug_asm;
+extern int flag_dump_rtl_in_asm;
+
/* -fgnu-linker specifies use of the GNU linker for initializations.
-fno-gnu-linker says that collect will be used. */
extern int flag_gnu_linker;
extern int frame_pointer_needed;
-/* Set nonzero if jump_optimize finds that control falls through
- at the end of the function. */
-
-extern int can_reach_end;
-
/* Nonzero if GCC must add code to check memory access (used by Checker). */
extern int flag_check_memory_usage;
+/* Nonzero if the generated code should trap on signed overflow
+ for PLUS / SUB / MULT. */
+extern int flag_trapv;
+
/* Nonzero if GCC must prefix function names (used with
flag_check_memory_usage). */
string identifying the compiler. */
extern int flag_no_ident;
+
+/* Nonzero means we should do dwarf2 duplicate elimination. */
+
+extern int flag_eliminate_dwarf2_dups;
+
+/* Non-zero means to collect statistics which might be expensive
+ and to print them when we are done. */
+extern int flag_detailed_statistics;
+
+#endif /* GCC_FLAGS_H */