]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cgraph_node: Remove redundant section clearing
authorBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Thu, 3 Nov 2022 20:20:57 +0000 (21:20 +0100)
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>
Sun, 6 Nov 2022 00:52:40 +0000 (01:52 +0100)
Ok for trunk if testing passes?

gcc/ChangeLog:

* cgraph.cc (cgraph_node::make_local): Remove redundant set_section.
* multiple_target.cc (create_dispatcher_calls): Likewise.

Signed-off-by: Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
gcc/cgraph.cc
gcc/multiple_target.cc

index 5851b2ffc6cfe684c2042e7db797a9b571012213..f15cb47c8b8816028f60342ef8c9e4fab630c557 100644 (file)
@@ -2490,7 +2490,6 @@ cgraph_node::make_local (cgraph_node *node, void *)
       node->externally_visible = false;
       node->forced_by_abi = false;
       node->local = true;
-      node->set_section (NULL);
       node->unique_name = ((node->resolution == LDPR_PREVAILING_DEF_IRONLY
                           || node->resolution == LDPR_PREVAILING_DEF_IRONLY_EXP)
                           && !flag_incremental_link);
index 3e2d26882c8e9f449025f9399ee238564565b2e8..67866a7c9632af11e204f669fdbb991375687936 100644 (file)
@@ -178,7 +178,6 @@ create_dispatcher_calls (struct cgraph_node *node)
       node->set_comdat_group (NULL);
       node->externally_visible = false;
       node->forced_by_abi = false;
-      node->set_section (NULL);
 
       DECL_ARTIFICIAL (node->decl) = 1;
       node->force_output = true;