diff options
author | Richard Biener <rguenther@suse.de> | 2016-07-25 12:35:08 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-07-25 12:35:08 +0000 |
commit | ea6e17d5c008e7df184e00e50be3bf078e002634 (patch) | |
tree | 0399e6e9c525ba63a77eae7d1e43f74c8a8d83f4 /gcc/tree-streamer-in.c | |
parent | bf01e070a65a0d85cce05034673648b79d467c72 (diff) |
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-in.c')
-rw-r--r-- | gcc/tree-streamer-in.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/gcc/tree-streamer-in.c b/gcc/tree-streamer-in.c index 2ad2f9212fa..671ce31d301 100644 --- a/gcc/tree-streamer-in.c +++ b/gcc/tree-streamer-in.c @@ -1113,62 +1113,3 @@ streamer_get_pickled_tree (struct lto_input_block *ib, struct data_in *data_in) return result; } - - -/* Read a code and class from input block IB and return the - corresponding builtin. DATA_IN is as in stream_read_tree. */ - -tree -streamer_get_builtin_tree (struct lto_input_block *ib, struct data_in *data_in) -{ - enum built_in_class fclass; - enum built_in_function fcode; - const char *asmname; - tree result; - - fclass = streamer_read_enum (ib, built_in_class, BUILT_IN_LAST); - gcc_assert (fclass == BUILT_IN_NORMAL || fclass == BUILT_IN_MD); - - fcode = (enum built_in_function) streamer_read_uhwi (ib); - - if (fclass == BUILT_IN_NORMAL) - { - if (fcode >= END_BUILTINS) - fatal_error (input_location, - "machine independent builtin code out of range"); - result = builtin_decl_explicit (fcode); - if (!result) - { - if (fcode > BEGIN_CHKP_BUILTINS && fcode < END_CHKP_BUILTINS) - { - fcode = (enum built_in_function) - (fcode - BEGIN_CHKP_BUILTINS - 1); - result = builtin_decl_explicit (fcode); - result = chkp_maybe_clone_builtin_fndecl (result); - } - else if (fcode > BEGIN_SANITIZER_BUILTINS - && fcode < END_SANITIZER_BUILTINS) - { - initialize_sanitizer_builtins (); - result = builtin_decl_explicit (fcode); - } - } - gcc_assert (result); - } - else if (fclass == BUILT_IN_MD) - { - result = targetm.builtin_decl (fcode, true); - if (!result || result == error_mark_node) - fatal_error (input_location, "target specific builtin not available"); - } - else - gcc_unreachable (); - - asmname = streamer_read_string (data_in, ib); - if (asmname) - set_builtin_user_assembler_name (result, asmname); - - streamer_tree_cache_append (data_in->reader_cache, result, 0); - - return result; -} |