opts.h (cl_option_state): New structure.
authorRichard Sandiford <rsandifo@redhat.com>
Wed, 1 Jun 2005 06:55:47 +0000 (06:55 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 1 Jun 2005 06:55:47 +0000 (06:55 +0000)
commit5c60a0172d9cce62e61afd5d851106775a1a48e6
tree84536cfc7589dba0e2733eab222c518d135cbf94
parentb76f4c1c79e7a5e317d505ac09de3614c8179857
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
gcc/ChangeLog
gcc/opts.c
gcc/opts.h
gcc/toplev.c