From ea6e17d5c008e7df184e00e50be3bf078e002634 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 25 Jul 2016 12:35:08 +0000 Subject: cgraph.c (cgraph_node::verify_node): Compare against builtin by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE. 2016-07-25 Richard Biener * cgraph.c (cgraph_node::verify_node): Compare against builtin by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE. * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise. * tree-streamer.h (streamer_handle_as_builtin_p): Remove. (streamer_get_builtin_tree): Likewise. (streamer_write_builtin): Likewise. * lto-streamer.h (LTO_builtin_decl): Remove. * lto-streamer-in.c (lto_read_tree_1): Remove assert. (lto_input_scc): Remove LTO_builtin_decl handling. (lto_input_tree_1): Liekwise. * lto-streamer-out.c (lto_output_tree_1): Remove special handling of builtins. (DFS::DFS): Likewise. * tree-streamer-in.c (streamer_get_builtin_tree): Remove. * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove assert. (streamer_write_builtin): Remove. lto/ * lto.c (compare_tree_sccs_1): Remove streamer_handle_as_builtin_p uses. (unify_scc): Likewise. (lto_read_decls): Likewise. From-SVN: r238709 --- gcc/lto/ChangeLog | 6 ++++++ gcc/lto/lto.c | 12 ++---------- 2 files changed, 8 insertions(+), 10 deletions(-) (limited to 'gcc/lto') diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 4969909..86cc8b1 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,9 @@ +2016-07-25 Richard Biener + + * lto.c (compare_tree_sccs_1): Remove streamer_handle_as_builtin_p uses. + (unify_scc): Likewise. + (lto_read_decls): Likewise. + 2016-06-28 Jakub Jelinek * Make-lang.in: Don't cat ../stage_current if it does not exist. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index af735cb..73d1e26 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -1061,12 +1061,6 @@ compare_tree_sccs_1 (tree t1, tree t2, tree **map) TREE_FIXED_CST_PTR (t1), TREE_FIXED_CST_PTR (t2))) return false; - - /* We want to compare locations up to the point where it makes - a difference for streaming - thus whether the decl is builtin or not. */ - if (CODE_CONTAINS_STRUCT (code, TS_DECL_MINIMAL)) - compare_values (streamer_handle_as_builtin_p); - if (CODE_CONTAINS_STRUCT (code, TS_DECL_COMMON)) { compare_values (DECL_MODE); @@ -1602,8 +1596,7 @@ unify_scc (struct data_in *data_in, unsigned from, streamer. The others should be singletons, too, and we should not merge them in any way. */ gcc_assert (code != TRANSLATION_UNIT_DECL - && code != IDENTIFIER_NODE - && !streamer_handle_as_builtin_p (t)); + && code != IDENTIFIER_NODE); } /* Fixup the streamer cache with the prevailing nodes according @@ -1710,8 +1703,7 @@ lto_read_decls (struct lto_file_decl_data *decl_data, const void *data, if (len == 1 && (TREE_CODE (first) == IDENTIFIER_NODE || TREE_CODE (first) == INTEGER_CST - || TREE_CODE (first) == TRANSLATION_UNIT_DECL - || streamer_handle_as_builtin_p (first))) + || TREE_CODE (first) == TRANSLATION_UNIT_DECL)) continue; /* Try to unify the SCC with already existing ones. */ -- cgit v1.1