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/cgraph.c | |
parent | bf01e070a65a0d85cce05034673648b79d467c72 (diff) | |
download | gcc-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/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index e256dd0..9bc5b6b 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -3136,8 +3136,9 @@ cgraph_node::verify_node (void) && !e->speculative /* Optimized out calls are redirected to __builtin_unreachable. */ && (e->frequency - || e->callee->decl - != builtin_decl_implicit (BUILT_IN_UNREACHABLE)) + || ! e->callee->decl + || DECL_BUILT_IN_CLASS (e->callee->decl) != BUILT_IN_NORMAL + || DECL_FUNCTION_CODE (e->callee->decl) != BUILT_IN_UNREACHABLE) && (e->frequency != compute_call_stmt_bb_frequency (e->caller->decl, gimple_bb (e->call_stmt)))) |