public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-3700] cgraph_node: Remove redundant section clearing
@ 2022-11-06 0:53 Bernhard Reutner-Fischer
0 siblings, 0 replies; only message in thread
From: Bernhard Reutner-Fischer @ 2022-11-06 0:53 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:efbf11e97b476d7f85a3d5c599a6c11e211362e8
commit r13-3700-gefbf11e97b476d7f85a3d5c599a6c11e211362e8
Author: Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
Date: Thu Nov 3 21:20:57 2022 +0100
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>
Diff:
---
gcc/cgraph.cc | 1 -
gcc/multiple_target.cc | 1 -
2 files changed, 2 deletions(-)
diff --git a/gcc/cgraph.cc b/gcc/cgraph.cc
index 5851b2ffc6c..f15cb47c8b8 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 3e2d26882c8..67866a7c963 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-06 0:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-06 0:53 [gcc r13-3700] cgraph_node: Remove redundant section clearing Bernhard Reutner-Fischer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).