aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-streamer.h
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-07-25 12:35:08 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-07-25 12:35:08 +0000
commitea6e17d5c008e7df184e00e50be3bf078e002634 (patch)
tree0399e6e9c525ba63a77eae7d1e43f74c8a8d83f4 /gcc/tree-streamer.h
parentbf01e070a65a0d85cce05034673648b79d467c72 (diff)
downloadgcc-ea6e17d5c008e7df184e00e50be3bf078e002634.zip
gcc-ea6e17d5c008e7df184e00e50be3bf078e002634.tar.gz
gcc-ea6e17d5c008e7df184e00e50be3bf078e002634.tar.bz2
cgraph.c (cgraph_node::verify_node): Compare against builtin by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
2016-07-25 Richard Biener <rguenther@suse.de> * 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
Diffstat (limited to 'gcc/tree-streamer.h')
-rw-r--r--gcc/tree-streamer.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/tree-streamer.h b/gcc/tree-streamer.h
index 41a76a2..1daf259 100644
--- a/gcc/tree-streamer.h
+++ b/gcc/tree-streamer.h
@@ -57,17 +57,6 @@ struct streamer_tree_cache_d
unsigned next_idx;
};
-/* Return true if tree node EXPR should be streamed as a builtin. For
- these nodes, we just emit the class and function code. */
-static inline bool
-streamer_handle_as_builtin_p (tree expr)
-{
- return (TREE_CODE (expr) == FUNCTION_DECL
- && DECL_IS_BUILTIN (expr)
- && (DECL_BUILT_IN_CLASS (expr) == BUILT_IN_NORMAL
- || DECL_BUILT_IN_CLASS (expr) == BUILT_IN_MD));
-}
-
/* In tree-streamer-in.c. */
tree streamer_read_string_cst (struct data_in *, struct lto_input_block *);
tree streamer_read_chain (struct lto_input_block *, struct data_in *);
@@ -75,7 +64,6 @@ tree streamer_alloc_tree (struct lto_input_block *, struct data_in *,
enum LTO_tags);
void streamer_read_tree_body (struct lto_input_block *, struct data_in *, tree);
tree streamer_get_pickled_tree (struct lto_input_block *, struct data_in *);
-tree streamer_get_builtin_tree (struct lto_input_block *, struct data_in *);
void streamer_read_tree_bitfields (struct lto_input_block *,
struct data_in *, tree);
@@ -87,7 +75,6 @@ void streamer_write_tree_header (struct output_block *, tree);
void streamer_write_tree_bitfields (struct output_block *, tree);
void streamer_write_tree_body (struct output_block *, tree, bool);
void streamer_write_integer_cst (struct output_block *, tree, bool);
-void streamer_write_builtin (struct output_block *, tree);
/* In tree-streamer.c. */
extern unsigned char streamer_mode_table[1 << 8];