c-common.h (c_common_print_pch_checksum): Remove.
authorSteven Bosscher <steven@gcc.gnu.org>
Thu, 21 Jun 2012 16:53:45 +0000 (16:53 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Thu, 21 Jun 2012 16:53:45 +0000 (16:53 +0000)
commit8ca92d04e1a0081560a6882c5e8abee899145031
tree091ec6fe315eb1d214f1f60e4eec7a892a1b27ca
parent7033abe11e47396e0d3517986ae935ef2599fe70
c-common.h (c_common_print_pch_checksum): Remove.

c-family/
* c-common.h (c_common_print_pch_checksum): Remove.
* c-pch.c: Do not include output.h.
(CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
(asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
(asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
(struct c_pch_header): Remove.
(get_ident): Update gpch version.
(pch_init): Do not print executable_checksum to asm_out_file.
Do not fail if there is no asm_out_file to read back from.  Set
asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
(c_common_write_pch): Verify that nothing was written to asm_out_file
since pch_init was called.  Do not write a c_pch_header, and do not
copy from asm_out_file to the PCH.
(c_common_read_pch): Do not read a c_pch_header, and do not restore
the content of asm_out_file from the PCH.
(c_common_print_pch_checksum): Remove.
* c-opts.c (c_common_init): Print out executable_checksum directly.

testsuite/
* testsuite/gcc.dg/pch/ident-1.c: New test.
* testsuite/gcc.dg/pch/ident-1.hs: Header file for new test.

From-SVN: r188856
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.h
gcc/c-family/c-opts.c
gcc/c-family/c-pch.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pch/ident-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pch/ident-1.hs [new file with mode: 0644]