diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2005-05-31 15:51:42 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2005-05-31 15:51:42 +0000 |
commit | 8d932be3e1502485e9fb78695b7c2c4bdb7653cd (patch) | |
tree | 6493f351baf9a917bfbcf8a8a1c3c4db18abd2ed /gcc/target.h | |
parent | 4ea73bfac370705eaf74e204264bf994c51bdfd9 (diff) | |
download | gcc-8d932be3e1502485e9fb78695b7c2c4bdb7653cd.zip gcc-8d932be3e1502485e9fb78695b7c2c4bdb7653cd.tar.gz gcc-8d932be3e1502485e9fb78695b7c2c4bdb7653cd.tar.bz2 |
tm.texi (TARGET_GET_PCH_VALIDITY, [...]): Tweak the documentation to make it more future-proof.
* 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.
From-SVN: r100392
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 38f09b0..1527819 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. */ |