]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR pch/10757 (Adding -fpic/-fPIC causes crash with PCH created without -fpic/...
authorGeoffrey Keating <geoffk@apple.com>
Fri, 24 Oct 2003 21:28:13 +0000 (21:28 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Fri, 24 Oct 2003 21:28:13 +0000 (21:28 +0000)
commit7bb1ad9314f7e671cf8c4b69da55dc0afe7cba01
treed43094488963890ba2a849eb20c57b70ebe80264
parenteebf21ef9940f507365b505fcd2fb290cc7c38b7
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
gcc/ChangeLog
gcc/Makefile.in
gcc/c-pch.c
gcc/doc/tm.texi
gcc/target-def.h
gcc/target.h
gcc/toplev.c
gcc/toplev.h