diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2005-06-01 06:55:47 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2005-06-01 06:55:47 +0000 |
commit | 5c60a0172d9cce62e61afd5d851106775a1a48e6 (patch) | |
tree | 84536cfc7589dba0e2733eab222c518d135cbf94 /gcc/opts.h | |
parent | b76f4c1c79e7a5e317d505ac09de3614c8179857 (diff) | |
download | gcc-5c60a0172d9cce62e61afd5d851106775a1a48e6.zip gcc-5c60a0172d9cce62e61afd5d851106775a1a48e6.tar.gz gcc-5c60a0172d9cce62e61afd5d851106775a1a48e6.tar.bz2 |
opts.h (cl_option_state): New structure.
* opts.h (cl_option_state): New structure.
(get_option_state): Declare.
* opts.c (get_option_state): New function.
* toplev.c (option_affects_pch_p): New function.
(default_get_pch_validity): Store the state of all options for which
option_affects_pch_p returns true.
(default_pch_valid_p): Check the state of those options here.
Only check target_flags separately if targetm.check_pch_target_Flags
is nonnull or if TARGET_SWITCHES is defined.
From-SVN: r100430
Diffstat (limited to 'gcc/opts.h')
-rw-r--r-- | gcc/opts.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -52,6 +52,14 @@ struct cl_option int var_value; }; +/* Records that the state of an option consists of SIZE bytes starting + at DATA. DATA might point to CH in some cases. */ +struct cl_option_state { + const void *data; + size_t size; + char ch; +}; + extern const struct cl_option cl_options[]; extern const unsigned int cl_options_count; extern const char *const lang_names[]; @@ -77,6 +85,7 @@ extern unsigned num_in_fnames; extern void decode_options (unsigned int argc, const char **argv); extern int option_enabled (int opt_idx); +extern bool get_option_state (int, struct cl_option_state *); extern void print_filtered_help (unsigned int); #endif |