-/* Compilation switch flag definitions for GNU CC.
+/* Compilation switch flag definitions for GCC.
Copyright (C) 1987, 1988, 1994, 1995, 1996, 1997, 1998, 1999, 2000
Free Software Foundation, Inc.
-This file is part of GNU CC.
+This file is part of GCC.
-GNU CC is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
-GNU CC is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
You should have received a copy of the GNU General Public License
-along with GNU CC; see the file COPYING. If not, write to
-the Free Software Foundation, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA. */
+along with GCC; see the file COPYING. If not, write to 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
{
{
DINFO_LEVEL_NONE, /* Write no debugging info. */
DINFO_LEVEL_TERSE, /* Write minimal info to support tracebacks only. */
- DINFO_LEVEL_NORMAL, /* Write info for all declarations (and line table). */
+ DINFO_LEVEL_NORMAL, /* Write info for all declarations (and line table). */
DINFO_LEVEL_VERBOSE /* Write normal info plus #define/#undef info. */
};
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_unknown_pragmas;
-/* Nonzero means warn about all declarations which shadow others. */
+/* Nonzero means warn about all declarations which shadow others. */
extern int warn_shadow;
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_id_clash;
-extern int id_clash_len;
-
/* Nonzero means warn about any objects definitions whose size is larger
than N bytes. Also want about function definitions whose returned
values are larger than N bytes. The value N is in `larger_than_size'. */
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;
extern int profile_block_flag;
-/* Nonzero if generating code to profile program flow graph arcs. */
+/* Nonzero if generating code to profile program flow graph arcs. */
extern int profile_arc_flag;
-/* Nonzero if generating info for gcov to calculate line test coverage. */
+/* Nonzero if generating info for gcov to calculate line test coverage. */
extern int flag_test_coverage;
-/* Nonzero indicates that branch taken probabilities should be calculated. */
+/* Nonzero indicates that branch taken probabilities should be calculated. */
extern int flag_branch_probabilities;
+/* Nonzero if basic blocks should be reordered. */
+
+extern int flag_reorder_blocks;
+
+/* Nonzero if registers should be renamed. */
+
+extern int flag_rename_registers;
+
/* Nonzero for -pedantic switch: warn about anything
that standard C forbids. */
extern int flag_unroll_all_loops;
/* Nonzero forces all invariant computations in loops to be moved
- outside the loop. */
+ outside the loop. */
extern int flag_move_all_movables;
/* Nonzero forces all general induction variables in loops to be
- strength reduced. */
+ strength reduced. */
extern int flag_reduce_all_givs;
extern int flag_volatile_static;
-/* Nonzero allows GCC to violate some IEEE or ANSI rules regarding math
- operations in the interest of optimization. For example it allows
- GCC to assume arguments to sqrt are nonnegative numbers, allowing
- faster code for sqrt to be generated. */
+/* Nonzero allows GCC to optimize sibling and tail recursive calls. */
-extern int flag_fast_math;
+extern int flag_optimize_sibling_calls;
/* Nonzero means the front end generally wants `errno' maintained by math
- operations, like built-in SQRT, unless overridden by flag_fast_math. */
+ operations, like built-in SQRT. */
extern int flag_errno_math;
+/* Nonzero means that unsafe floating-point math optimizations are allowed
+ for the sake of speed. IEEE compliance is not guaranteed, and operations
+ are allowed to assume that their arguments and results are "normal"
+ (e.g., nonnegative for SQRT). */
+
+extern int flag_unsafe_math_optimizations;
+
+/* Zero means that floating-point math operations cannot generate a
+ (user-visible) trap. This is the case, for example, in nonstop
+ IEEE 754 arithmetic. */
+
+extern int flag_trapping_math;
+
/* 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
- by a cheaper branch, on a count register. */
+/* 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. */
+/* Nonzero means put things in delayed-branch slots if supported. */
extern int flag_delayed_branch;
extern int flag_exceptions;
-/* Nonzero means use the new model for exception handling. Replaces
- -DNEW_EH_MODEL as a compile option. */
-
-extern int flag_new_exceptions;
-
/* Nonzero means generate frame unwind info table when supported */
extern int flag_unwind_tables;
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;
/* Instrument functions with calls at entry and exit, for profiling. */
extern int flag_instrument_function_entry_exit;
-/* Perform a peephole pass before sched2. */
+/* Perform a peephole pass before sched2. */
extern int flag_peephole2;
+/* Try to guess branch probablities. */
+extern int flag_guess_branch_prob;
+
/* -fbounded-pointers causes gcc to compile pointers as composite
objects occupying three words: the pointer value, the base address
of the referent object, and the address immediately beyond the end
For CHILL: defaults to off. */
extern int flag_bounds_check;
+/* This will attempt to merge constant section constants, if 1 only
+ string constants and constants from constant pool, if 2 also constant
+ variables. */
+extern int flag_merge_constants;
+
/* If one, renumber instruction UIDs to reduce the number of
unused UIDs if there are a lot of instructions. If greater than
one, unconditionally renumber instruction UIDs. */
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). */
extern int g_switch_value;
extern int g_switch_set;
-/* Value of the -finline-limit flag. */
-
-extern int inline_max_insns;
-
/* Values of the -falign-* flags: how much to align labels in code.
0 means `use default', 1 means `don't align'.
For each variable, there is an _log variant which is the power
string identifying the compiler. */
extern int flag_no_ident;
+
+/* Nonzero if we want to perform enhanced load motion during gcse. */
+
+extern int flag_gcse_lm;
+
+/* Nonzero if we want to perform store motion after gcse. */
+
+extern int flag_gcse_sm;
+
+
+/* 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;
+
+/* Nonzero means enable synchronous exceptions for non-call instructions. */
+extern int flag_non_call_exceptions;
+
+#endif /* ! GCC_FLAGS_H */