diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-24 21:28:13 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-24 21:28:13 +0000 |
commit | 7988d6e261f71ae9e293e727e7286c860d4ed8d2 (patch) | |
tree | d43094488963890ba2a849eb20c57b70ebe80264 /gcc/toplev.h | |
parent | 262c6367352ee365cb78533d503308e0d2d64c6d (diff) | |
download | gcc-7988d6e261f71ae9e293e727e7286c860d4ed8d2.tar.gz |
PR 10757
* c-pch.c: Include target.h. Improve comments.
(struct c_pch_validity): Add target_data_length.
(pch_init): Add target's validity data.
(c_common_valid_pch): Check target's validity data.
* target-def.h (TARGET_GET_PCH_VALIDITY): New.
(TARGET_PCH_VALID_P): New.
(TARGET_INITIALIZER): Add new fields.
* target.h: Include tm.h.
(struct gcc_target): Add get_pch_validity, pch_valid_p.
* toplev.h (default_get_pch_validity): New prototype.
(default_pch_valid_p): New prototype.
* toplev.c (default_get_pch_validity): New routine.
(default_pch_valid_p): New routine.
* Makefile.in (TARGET_H): Add TM_H. Replace all users of
target.h with $(TARGET_H).
(c-pch.o): Add TARGET_H.
* doc/tm.texi (PCH Target): New node.
(TARGET_GET_PCH_VALIDITY): Document.
(TARGET_PCH_VALID_P): Document.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72909 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.h')
-rw-r--r-- | gcc/toplev.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h index ae05f4b22ec..5a8b5813f09 100644 --- a/gcc/toplev.h +++ b/gcc/toplev.h @@ -124,9 +124,12 @@ extern int flag_ssa_dce; extern int time_report; extern int flag_new_regalloc; +/* Things to do with target switches. */ extern void display_target_options (void); extern void print_version (FILE *, const char *); extern void set_target_switch (const char *); +extern void * default_get_pch_validity (size_t *); +extern const char * default_pch_valid_p (const void *, size_t); /* The hashtable, so that the C front ends can pass it to cpplib. */ extern struct ht *ident_hash; |