aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <aldot@gcc.gnu.org>2022-11-03 21:20:57 +0100
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>2022-11-06 01:52:40 +0100
commitefbf11e97b476d7f85a3d5c599a6c11e211362e8 (patch)
tree883203ee4c35945cb4bbbfc9cac328f33092b2ef
parenta111cfba4816765b55f4d5c82bc2b034047db92c (diff)
downloadgcc-efbf11e97b476d7f85a3d5c599a6c11e211362e8.zip
gcc-efbf11e97b476d7f85a3d5c599a6c11e211362e8.tar.gz
gcc-efbf11e97b476d7f85a3d5c599a6c11e211362e8.tar.bz2
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>
-rw-r--r--gcc/cgraph.cc1
-rw-r--r--gcc/multiple_target.cc1
2 files changed, 0 insertions, 2 deletions
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);
diff --git a/gcc/multiple_target.cc b/gcc/multiple_target.cc
index 3e2d268..67866a7 100644
--- a/gcc/multiple_target.cc
+++ b/gcc/multiple_target.cc
@@ -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;