aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-02-22 10:59:33 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-02-22 10:59:33 +0000
commit921bb9d1a3981bc801b6e22eccc8af2a248b9e81 (patch)
treeecbad955fc83cd0dc1fd020a63c968e50c93cb93
parentc904388dc1d630939d50eac53a900ee02849b271 (diff)
downloadgcc-921bb9d1a3981bc801b6e22eccc8af2a248b9e81.zip
gcc-921bb9d1a3981bc801b6e22eccc8af2a248b9e81.tar.gz
gcc-921bb9d1a3981bc801b6e22eccc8af2a248b9e81.tar.bz2
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
-rw-r--r--gcc/c-family/ChangeLog7
-rw-r--r--gcc/c-family/c-pch.c8
2 files changed, 7 insertions, 8 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 2d3839e..951231e 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,10 @@
+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>
PR middle-end/89294
diff --git a/gcc/c-family/c-pch.c b/gcc/c-family/c-pch.c
index 7774024..5492752 100644
--- a/gcc/c-family/c-pch.c
+++ b/gcc/c-family/c-pch.c
@@ -45,10 +45,6 @@ enum {
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.
Before this structure is read, both an initial 8-character identification
@@ -111,8 +107,6 @@ pch_init (void)
pch_file);
pch_outfile = f;
- gcc_assert (memcmp (executable_checksum, no_checksum, 16) != 0);
-
memset (&v, '\0', sizeof (v));
v.debug_info_type = write_symbols;
{
@@ -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
precompiled header for the current language. */
- gcc_assert (memcmp (executable_checksum, no_checksum, 16) != 0);
-
sizeread = read (fd, ident, IDENT_LENGTH + 16);
if (sizeread == -1)
fatal_error (input_location, "can%'t read %s: %m", name);