* opts.h (cl_option_state): New structure.
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Jun 2005 06:55:47 +0000 (06:55 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Jun 2005 06:55:47 +0000 (06:55 +0000)
commit7abcc4972f22c3ede227e7053128c07cdf3a00e1
tree84536cfc7589dba0e2733eab222c518d135cbf94
parent3ec8aef1d617142080d12a5498e10284e8221368
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100430 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/opts.c
gcc/opts.h
gcc/toplev.c