cgraph_node: Remove redundant section clearing

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>
This commit is contained in:
Bernhard Reutner-Fischer 2022-11-03 21:20:57 +01:00
parent a111cfba48
commit efbf11e97b
2 changed files with 0 additions and 2 deletions

View 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);

View 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;