summaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2013-08-28 15:03:43 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2013-08-28 15:03:43 +0000
commit881fe02c8aff7cd2996f136182eae5eba587b923 (patch)
treea404cd6df99bc5486816e875d5a53aead207efd1 /gcc/lto
parent7815b5eb6425607b03f8a9d7bcb726be35b0eaa4 (diff)
downloadgcc-881fe02c8aff7cd2996f136182eae5eba587b923.tar.gz
* lto.c (compare_tree_sccs_1): Drop DECL_ERROR_ISSUED,
DECL_DEFER_OUTPUT and DECL_IN_TEXT_SECTION. (unify_scc): Do checking assert. * lto-streamer-out.c (DFS_write_tree_body): Drop BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX. (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION. * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Do not read DECL_ERROR_ISSUED. (unpack_ts_decl_with_vis_value_fields): Do not read DECL_DEFER_OUTPUT. (lto_input_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not write DECL_ERROR_ISSUED.. (pack_ts_decl_with_vis_value_fields): Do not write DECL_DEFER_OUTPUT. (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED. * tree.h (tree_decl_common): Update comment. (DECL_ERROR_ISSUED): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202052 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog6
-rw-r--r--gcc/lto/lto.c19
2 files changed, 12 insertions, 13 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 3ffc5f660af..0fb1fc0eedd 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,9 @@
+2013-08-28 Jan Hubicka <jh@suse.cz>
+
+ * lto.c (compare_tree_sccs_1): Drop DECL_ERROR_ISSUED,
+ DECL_DEFER_OUTPUT and DECL_IN_TEXT_SECTION.
+ (unify_scc): Do checking assert.
+
2013-08-06 Jan Hubicka <jh@suse.cz>
Martin Liska <marxin.liska@gmail.com>
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index c854589c673..d3d9fabc151 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -1431,9 +1431,8 @@ maybe_remember_with_vars_binfo (tree t)
n = vec_safe_length (BINFO_BASE_ACCESSES (t));
for (i = 0; i < n; i++)
MAYBE_REMEMBER_WITH_VARS (BINFO_BASE_ACCESS (t, i));
- MAYBE_REMEMBER_WITH_VARS (BINFO_INHERITANCE_CHAIN (t));
- MAYBE_REMEMBER_WITH_VARS (BINFO_SUBVTT_INDEX (t));
- MAYBE_REMEMBER_WITH_VARS (BINFO_VPTR_INDEX (t));
+ /* Do not walk BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX
+ and BINFO_VPTR_INDEX; these are used by C++ FE only. */
n = BINFO_N_BASE_BINFOS (t);
for (i = 0; i < n; i++)
MAYBE_REMEMBER_WITH_VARS (BINFO_BASE_BINFO (t, i));
@@ -1823,7 +1822,6 @@ compare_tree_sccs_1 (tree t1, tree t2, tree **map)
compare_values (DECL_ALIGN);
if (code == LABEL_DECL)
{
- compare_values (DECL_ERROR_ISSUED);
compare_values (EH_LANDING_PAD_NR);
compare_values (LABEL_DECL_UID);
}
@@ -1854,7 +1852,6 @@ compare_tree_sccs_1 (tree t1, tree t2, tree **map)
if (CODE_CONTAINS_STRUCT (code, TS_DECL_WITH_VIS))
{
- compare_values (DECL_DEFER_OUTPUT);
compare_values (DECL_COMMON);
compare_values (DECL_DLLIMPORT_P);
compare_values (DECL_WEAK);
@@ -1865,7 +1862,7 @@ compare_tree_sccs_1 (tree t1, tree t2, tree **map)
if (code == VAR_DECL)
{
compare_values (DECL_HARD_REGISTER);
- compare_values (DECL_IN_TEXT_SECTION);
+ /* DECL_IN_TEXT_SECTION is set during final asm output only. */
compare_values (DECL_IN_CONSTANT_POOL);
compare_values (DECL_TLS_MODEL);
}
@@ -2167,12 +2164,8 @@ compare_tree_sccs_1 (tree t1, tree t2, tree **map)
compare_tree_edges (BINFO_OFFSET (t1), BINFO_OFFSET (t2));
compare_tree_edges (BINFO_VTABLE (t1), BINFO_VTABLE (t2));
compare_tree_edges (BINFO_VPTR_FIELD (t1), BINFO_VPTR_FIELD (t2));
- compare_tree_edges (BINFO_INHERITANCE_CHAIN (t1),
- BINFO_INHERITANCE_CHAIN (t2));
- compare_tree_edges (BINFO_SUBVTT_INDEX (t1),
- BINFO_SUBVTT_INDEX (t2));
- compare_tree_edges (BINFO_VPTR_INDEX (t1),
- BINFO_VPTR_INDEX (t2));
+ /* Do not walk BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX
+ and BINFO_VPTR_INDEX; these are used by C++ FE only. */
}
if (CODE_CONTAINS_STRUCT (code, TS_CONSTRUCTOR))
@@ -2284,7 +2277,7 @@ unify_scc (struct streamer_tree_cache_d *cache, unsigned from,
for (unsigned i = 0; i < scc->len; ++i)
{
TREE_VISITED (scc->entries[i]) = 1;
- gcc_assert (!TREE_ASM_WRITTEN (scc->entries[i]));
+ gcc_checking_assert (!TREE_ASM_WRITTEN (scc->entries[i]));
}
tree *map = XALLOCAVEC (tree, 2 * len);