diff options
author | Geoffrey Keating <geoffk@apple.com> | 2003-10-24 21:28:13 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2003-10-24 21:28:13 +0000 |
commit | 7bb1ad9314f7e671cf8c4b69da55dc0afe7cba01 (patch) | |
tree | d43094488963890ba2a849eb20c57b70ebe80264 /gcc/toplev.h | |
parent | eebf21ef9940f507365b505fcd2fb290cc7c38b7 (diff) | |
download | gcc-7bb1ad9314f7e671cf8c4b69da55dc0afe7cba01.zip gcc-7bb1ad9314f7e671cf8c4b69da55dc0afe7cba01.tar.gz gcc-7bb1ad9314f7e671cf8c4b69da55dc0afe7cba01.tar.bz2 |
re PR pch/10757 (Adding -fpic/-fPIC causes crash with PCH created without -fpic/-fPIC)
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.
From-SVN: r72909
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 ae05f4b..5a8b581 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; |