aboutsummaryrefslogtreecommitdiff
path: root/gcc/flags.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-10-08 16:17:32 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2010-10-08 16:17:32 +0100
commita75bfaa6cdea2dd7c2e8ac2aa4f52267b3213362 (patch)
treed7c6e9b6d0c3fea0b0d512fb08735055168c35e6 /gcc/flags.h
parente899aa1613680d530fad1848a13ff91236b91b44 (diff)
downloadgcc-a75bfaa6cdea2dd7c2e8ac2aa4f52267b3213362.zip
gcc-a75bfaa6cdea2dd7c2e8ac2aa4f52267b3213362.tar.gz
gcc-a75bfaa6cdea2dd7c2e8ac2aa4f52267b3213362.tar.bz2
Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
* Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h. (TREE_H): Include $(FLAGS_H) instead of options.h. (opts-common.o): Depend on $(FLAGS_H) instead of options.h. * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define. * common.opt (flag_complex_method, flag_evaluation_order, flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New Variable declarations. * configure.ac (tm_include_list): Include flags.h instead of options.h. * configure: Regenerate. * flags.h: Condition out contents for target libraries. Include options.h at end of file. (flag_complex_method, flag_ira_algorithm, flag_ira_region, flag_evaluation_order, flag_warn_unused_result): Remove. * gcc.c (main): Intialize global_options with global_options_init. * langhooks-def.h (lhd_init_options_struct): Declare. (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define. (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT. * langhooks.c (lhd_init_options_struct): New. * langhooks.h (struct lang_hooks): Add init_options_struct. Update comment on init_options. * optc-gen.awk: Generate initializer for global_options_init, not global_options. * opth-gen.awk: Condition out structure declarations for target libraries. Declare global_options_init. * opts-common.c: Include flags.h instead of options.h. * opts.c (flag_warn_unused_result): Remove. (read_cmdline_options): Take gcc_options parameters. Pass them to read_cmdline_option. (initial_lang_mask, initial_min_crossjump_insns, initial_max_fields_for_field_sensitive, initial_loop_invariant_max_bbs_in_loop): Define at file scope. (init_options_once): New. Split out of decode_options. (init_options_struct): New. Split out of decode_options. (decode_cmdline_options_to_array_default_mask): New. (default_options_optimization): New. Split out of decode_options. (decode_options): Move most code to other functions. Update call to read_cmdline_options. (finish_options): New. Split out of decode_options. * opts.h (decode_options): Add gcc_options parameters. (init_options_once, init_options_struct, decode_cmdline_options_to_array_default_mask): New. * toplev.c (flag_complex_method, flag_ira_algorithm, flag_ira_region, flag_evaluation_order): Remove. (general_init): Use global_options_init for initial flag values for global_dc. (toplev_main): Call init_options_once, init_options_struct, lang_hooks.init_options_struct, decode_cmdline_options_to_array_default_mask and lang_hooks.init_option before decode_options. Update arguments to decode_options. * tree.h: Include flags.h instead of options.h. ada: * gcc-interface/misc.c (gnat_init_options_struct): New. Split out from gnat_init_options. (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define. c-family: * c-common.c (parse_optimize_options): Call decode_cmdline_options_to_array_default_mask before decode_options. Update arguments to decode_options. * c-common.h (c_common_init_options_struct): Declare. * c-opts.c (c_common_init_options_struct): New. Split out from c_common_init_options. cp: * cp-objcp-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define. fortran: * f95-lang.c (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define. * gfortran.h (gfc_init_options_struct): Declare. * options.c (gfc_init_options_struct): New. Split out from gfc_init_options. java: * lang.c (java_init_options_struct): New. Split out from java_init_options. (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define. lto: * lto-lang.c (lto_init_options): Change to lto_init_options_struct. Update parameters. (LANG_HOOKS_INIT_OPTIONS): Don't define. (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define. From-SVN: r165189
Diffstat (limited to 'gcc/flags.h')
-rw-r--r--gcc/flags.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/gcc/flags.h b/gcc/flags.h
index 6e7e112..99b69812e 100644
--- a/gcc/flags.h
+++ b/gcc/flags.h
@@ -23,7 +23,8 @@ along with GCC; see the file COPYING3. If not see
#define GCC_FLAGS_H
#include "coretypes.h"
-#include "options.h"
+
+#if !defined(IN_LIBGCC2) && !defined(IN_TARGET_LIBS) && !defined(IN_RTS)
enum debug_info_type
{
@@ -147,12 +148,6 @@ extern int flag_print_asm_name;
/* Now the symbols that are set with `-f' switches. */
-/* 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 multiply and divide. */
-
-extern int flag_complex_method;
-
/* Nonzero if we are only using compiler to check syntax errors. */
extern int rtl_dump_and_exit;
@@ -201,8 +196,6 @@ enum ira_algorithm
IRA_ALGORITHM_PRIORITY
};
-extern enum ira_algorithm flag_ira_algorithm;
-
/* The regions used for the integrated register allocator (IRA). */
enum ira_region
{
@@ -211,8 +204,6 @@ enum ira_region
IRA_REGION_MIXED
};
-extern enum ira_region flag_ira_region;
-
/* The options for excess precision. */
enum excess_precision
{
@@ -269,12 +260,6 @@ extern struct target_flag_state *this_target_flag_state;
#define flag_excess_precision \
(this_target_flag_state->x_flag_excess_precision)
-/* Nonzero if subexpressions must be evaluated from left-to-right. */
-extern int flag_evaluation_order;
-
-/* Whether to run the warn_unused_result attribute pass. */
-extern bool flag_warn_unused_result;
-
/* Nonzero if we dump in VCG format, not plain text. */
extern int dump_for_graph;
@@ -369,4 +354,10 @@ enum warn_strict_overflow_code
/* Whether to emit an overflow warning whose code is C. */
#define issue_strict_overflow_warning(c) (warn_strict_overflow >= (int) (c))
+#endif
+
+/* This is included last because options may use types declared
+ above. */
+#include "options.h"
+
#endif /* ! GCC_FLAGS_H */