Commit 921bb9d1 by Richard Biener Committed by Richard Biener

c-pch.c (no_checksum): Remove.

2019-02-22  Richard Biener  <rguenther@suse.de>

	c-family/
	* c-pch.c (no_checksum): Remove.
	(pch_init): Remove assertion that executable_checksum is not
	all zero.
	(c_common_valid_pch): Likewise.

From-SVN: r269113
parent c904388d
2019-02-22 Richard Biener <rguenther@suse.de>
* c-pch.c (no_checksum): Remove.
(pch_init): Remove assertion that executable_checksum is not
all zero.
(c_common_valid_pch): Likewise.
2019-02-18 Martin Sebor <msebor@redhat.com> 2019-02-18 Martin Sebor <msebor@redhat.com>
PR middle-end/89294 PR middle-end/89294
......
...@@ -45,10 +45,6 @@ enum { ...@@ -45,10 +45,6 @@ enum {
MATCH_SIZE = ARRAY_SIZE (pch_matching) MATCH_SIZE = ARRAY_SIZE (pch_matching)
}; };
/* The value of the checksum in the dummy compiler that is actually
checksummed. That compiler should never be run. */
static const char no_checksum[16] = { 0 };
/* Information about flags and suchlike that affect PCH validity. /* Information about flags and suchlike that affect PCH validity.
Before this structure is read, both an initial 8-character identification Before this structure is read, both an initial 8-character identification
...@@ -111,8 +107,6 @@ pch_init (void) ...@@ -111,8 +107,6 @@ pch_init (void)
pch_file); pch_file);
pch_outfile = f; pch_outfile = f;
gcc_assert (memcmp (executable_checksum, no_checksum, 16) != 0);
memset (&v, '\0', sizeof (v)); memset (&v, '\0', sizeof (v));
v.debug_info_type = write_symbols; v.debug_info_type = write_symbols;
{ {
...@@ -212,8 +206,6 @@ c_common_valid_pch (cpp_reader *pfile, const char *name, int fd) ...@@ -212,8 +206,6 @@ c_common_valid_pch (cpp_reader *pfile, const char *name, int fd)
/* Perform a quick test of whether this is a valid /* Perform a quick test of whether this is a valid
precompiled header for the current language. */ precompiled header for the current language. */
gcc_assert (memcmp (executable_checksum, no_checksum, 16) != 0);
sizeread = read (fd, ident, IDENT_LENGTH + 16); sizeread = read (fd, ident, IDENT_LENGTH + 16);
if (sizeread == -1) if (sizeread == -1)
fatal_error (input_location, "can%'t read %s: %m", name); fatal_error (input_location, "can%'t read %s: %m", name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment