summaryrefslogtreecommitdiff
path: root/gcc/c-family/c-opts.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2012-06-21 16:53:45 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2012-06-21 16:53:45 +0000
commit8ca92d04e1a0081560a6882c5e8abee899145031 (patch)
tree091ec6fe315eb1d214f1f60e4eec7a892a1b27ca /gcc/c-family/c-opts.c
parent7033abe11e47396e0d3517986ae935ef2599fe70 (diff)
downloadgcc-8ca92d04e1a0081560a6882c5e8abee899145031.tar.gz
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
Diffstat (limited to 'gcc/c-family/c-opts.c')
-rw-r--r--gcc/c-family/c-opts.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c
index 2330c133292..2fa59dc9795 100644
--- a/gcc/c-family/c-opts.c
+++ b/gcc/c-family/c-opts.c
@@ -1100,7 +1100,13 @@ c_common_init (void)
cpp_init_iconv (parse_in);
if (version_flag)
- c_common_print_pch_checksum (stderr);
+ {
+ int i;
+ fputs ("Compiler executable checksum: ", stderr);
+ for (i = 0; i < 16; i++)
+ fprintf (stderr, "%02x", executable_checksum[i]);
+ putc ('\n', stderr);
+ }
/* Has to wait until now so that cpplib has its hash table. */
init_pragma ();