diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-31 15:51:42 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-31 15:51:42 +0000 |
commit | 761d9126bbf0baa274bbfed2ff31f934a6d4c899 (patch) | |
tree | 6493f351baf9a917bfbcf8a8a1c3c4db18abd2ed /gcc/target.h | |
parent | 6252c2813fc1febff406ddfcecbdeda6ca7613b3 (diff) | |
download | gcc-761d9126bbf0baa274bbfed2ff31f934a6d4c899.tar.gz |
* doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
the documentation to make it more future-proof.
(TARGET_CHECK_PCH_TARGET_FLAGS): Document this new hook.
* target.h (gcc_target): Add check_pch_target_flags.
* target-def.h (TARGET_CHECK_PCH_TARGET_FLAGS): New macro.
(TARGET_INITIALIZER): Include it.
* toplev.c (default_pch_valid_p): Use targetm.check_pch_target_flags.
* config/sh/sh.h (sh_pch_valid_p): Delete.
* config/sh/sh.c (TARGET_PCH_VALID_P, sh_pch_valid_p): Delete.
(sh_check_pch_target_flags): New function.
(TARGET_CHECK_PCH_TARGET_FLAGS): Override default.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100392 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target.h')
-rw-r--r-- | gcc/target.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h index 38f09b01e05..1527819d916 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -485,6 +485,11 @@ struct gcc_target void * (* get_pch_validity) (size_t *); const char * (* pch_valid_p) (const void *, size_t); + /* If nonnull, this function checks whether a PCH file with the + given set of target flags can be used. It returns NULL if so, + otherwise it returns an error message. */ + const char *(*check_pch_target_flags) (int); + /* True if the compiler should give an enum type only as many bytes as it takes to represent the range of possible values of that type. */ |