/* Compilation switch flag definitions for GCC.
Copyright (C) 1987, 1988, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002,
- 2003
+ 2003, 2004
Free Software Foundation, Inc.
This file is part of GCC.
/* Nonzero means use GNU-only extensions in the generated symbolic
debugging information. */
-extern int use_gnu_debug_info_extensions;
+extern bool use_gnu_debug_info_extensions;
/* Nonzero means emit debugging information only for symbols which are used. */
extern int flag_debug_only_used_symbols;
/* Nonzero means warn about constructs which might not be strict
aliasing safe. */
-extern bool warn_strict_aliasing;
+extern int warn_strict_aliasing;
/* Nonzero if generating code to do profiling. */
perform miscellaneous relatively-expensive optimizations. */
extern int flag_expensive_optimizations;
-/* Nonzero for -fwritable-strings:
- store string constants in data segment and don't uniquize them. */
-
-extern int flag_writable_strings;
-
/* Nonzero means don't put addresses of constant functions in registers.
Used for compiling the Unix kernel, where strange substitutions are
done on the assembly output. */
extern int flag_trapping_math;
+/* Nonzero means disable transformations that assume default floating
+ point rounding behavior. */
+
+extern int flag_rounding_math;
+
/* 0 means straightforward implementation of complex divide acceptable.
1 means wide ranges of inputs must work for complex divide.
2 means C99-like requirements for complex divide (not yet implemented). */
/* Nonzero if we are only using compiler to check syntax errors. */
extern int flag_syntax_only;
+extern int rtl_dump_and_exit;
/* Nonzero means we should save auxiliary info into a .X file. */
extern int flag_schedule_speculative_load;
extern int flag_schedule_speculative_load_dangerous;
+/* The following flags have an effect during scheduling after register
+ allocation:
+
+ sched_stalled_insns means that insns can be moved prematurely from the queue
+ of stalled insns into the ready list.
+
+ sched_stalled_insns_dep controls how many recently scheduled cycles will
+ be examined for a dependency on a stalled insn that is candidate for
+ premature removal from the queue of stalled insns into the ready list (has
+ an effect only if the flag 'sched_stalled_insns' is set). */
+
+extern int flag_sched_stalled_insns;
+extern int flag_sched_stalled_insns_dep;
+
/* 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;
in generated assembly code. */
extern int flag_leading_underscore;
-/* -fgnu-linker specifies use of the GNU linker for initializations.
- -fno-gnu-linker says that collect will be used. */
-extern int flag_gnu_linker;
-
/* Tag all structures with __attribute__(packed) */
extern int flag_pack_struct;
/* Nonzero if the signed arithmetic overflow should wrap around. */
extern int flag_wrapv;
+/* Nonzero if subexpressions must be evaluated from left-to-right. */
+extern int flag_evaluation_order;
+
/* Value of the -G xx switch, and whether it was passed or not. */
extern unsigned HOST_WIDE_INT g_switch_value;
extern bool g_switch_set;
extern int flag_gcse_sm;
+/* Nonzero if we want to perform redundant load-after-store elimination
+ in gcse. */
+
+extern int flag_gcse_las;
+
+/* Nonzero if we want to perform global redundancy elimination after
+ register allocation. */
+
+extern int flag_gcse_after_reload;
+
+/* Nonzero if value histograms should be used to optimize code. */
+extern int flag_value_profile_transformations;
+
/* Perform branch target register optimization before prologue / epilogue
threading. */
extern int flag_branch_target_load_optimize2;
+/* For the bt-load pass, nonzero means don't re-use branch target registers
+ in any basic block. */
+extern int flag_btr_bb_exclusive;
+
/* Nonzero means we should do dwarf2 duplicate elimination. */
extern int flag_unit_at_a_time;
+extern int flag_web;
+
+/* Nonzero means that we defer emitting functions until they are actually
+ used. */
+extern int flag_remove_unreachable_functions;
+
+/* Nonzero if we should track variables. */
+extern int flag_var_tracking;
+
/* A string that's used when a random name is required. NULL means
to make it really random. */
extern const char *flag_random_seed;
+/* The version of the C++ ABI in use. The following values are
+ allowed:
+
+ 0: The version of the ABI believed most conformant with the
+ C++ ABI specification. This ABI may change as bugs are
+ discovered and fixed. Therefore, 0 will not necessarily
+ indicate the same ABI in different versions of G++.
+
+ 1: The version of the ABI first used in G++ 3.2.
+
+ Additional positive integers will be assigned as new versions of
+ the ABI become the default version of the ABI. */
+
+extern int flag_abi_version;
+
+/* Returns TRUE if generated code should match ABI version N or
+ greater is in use. */
+
+#define abi_version_at_least(N) \
+ (flag_abi_version == 0 || flag_abi_version >= (N))
+
/* True if the given mode has a NaN representation and the treatment of
NaN operands is important. Certain optimizations, such as folding
x * 0 into x, are not correct for NaN operands, and are normally
/* Like HONOR_NANS, but true if given mode supports sign-dependent rounding,
and the rounding mode is important. */
#define HONOR_SIGN_DEPENDENT_ROUNDING(MODE) \
- (MODE_HAS_SIGN_DEPENDENT_ROUNDING (MODE) && !flag_unsafe_math_optimizations)
+ (MODE_HAS_SIGN_DEPENDENT_ROUNDING (MODE) && flag_rounding_math)
#endif /* ! GCC_FLAGS_H */