From efbf11e97b476d7f85a3d5c599a6c11e211362e8 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 3 Nov 2022 21:20:57 +0100 Subject: 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 --- gcc/cgraph.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'gcc/cgraph.cc') diff --git a/gcc/cgraph.cc b/gcc/cgraph.cc index 5851b2f..f15cb47 100644 --- a/gcc/cgraph.cc +++ b/gcc/cgraph.cc @@ -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); -- cgit v1.1