diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-11-23 11:02:54 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-11-23 11:03:44 +0100 |
commit | 2780484bc376a89edb0c97b6b85209f4c27f34ee (patch) | |
tree | e5c066342cebb43318c69819acdf24d2b9e383ba /gcc/cp/semantics.c | |
parent | 6033b27eade9c31c0be50657094c89ef9068892d (diff) | |
download | gcc-2780484bc376a89edb0c97b6b85209f4c27f34ee.zip gcc-2780484bc376a89edb0c97b6b85209f4c27f34ee.tar.gz gcc-2780484bc376a89edb0c97b6b85209f4c27f34ee.tar.bz2 |
inliner: Remove unused transform_lang_insert_block hook
This struct copy_body_data's hook is always NULL since merge
of the tuples branch, before that it has been shortly used by the C++
FE during ctor/dtor cloning to chain the remapped blocks, but only
very shortly, before transform_lang_insert_block was a bool and
the call to insert_block was done through a langhook.
I'd say that for something that hasn't been used since 4.4 there is
zero chance we'll want to use it again in the near future.
2021-11-23 Jakub Jelinek <jakub@redhat.com>
gcc/
* tree-inline.h (struct copy_body_data): Remove
transform_lang_insert_block member.
* tree-inline.c (remap_block): Don't call
id->transform_lang_insert_block.
(optimize_inline_calls, copy_gimple_seq_and_replace_locals,
tree_function_versioning, maybe_inline_call_in_expr,
copy_fn): Don't initialize id.transform_lang_insert_block.
* gimplify.c (gimplify_omp_loop): Likewise.
gcc/c/
* c-typeck.c (c_clone_omp_udr): Don't initialize
id.transform_lang_insert_block.
gcc/cp/
* semantics.c (clone_omp_udr): Don't initialize
id.transform_lang_insert_block.
* optimize.c (clone_body): Likewise.
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index d962b29..79b8162 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -6066,7 +6066,6 @@ clone_omp_udr (tree stmt, tree omp_decl1, tree omp_decl2, id.transform_call_graph_edges = CB_CGE_DUPLICATE; id.transform_new_cfg = true; id.transform_return_to_modify = false; - id.transform_lang_insert_block = NULL; id.eh_lp_nr = 0; walk_tree (&stmt, copy_tree_body_r, &id, NULL); return stmt; |