public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH (pushed)] lto: do not load LTO stream for aliases [PR107418]
@ 2022-10-27  8:30 Martin Liška
  0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2022-10-27  8:30 UTC (permalink / raw)
  To: gcc-patches

It's the similar condition we use in lto-dump.

Pushed as obvious.

MArtin

	PR lto/107418

gcc/lto/ChangeLog:

	* lto-dump.cc (lto_main): Do not load LTO stream for aliases.
---
  gcc/lto/lto-dump.cc | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/lto/lto-dump.cc b/gcc/lto/lto-dump.cc
index f3d852df51f..cb9782722a9 100644
--- a/gcc/lto/lto-dump.cc
+++ b/gcc/lto/lto-dump.cc
@@ -347,7 +347,8 @@ lto_main (void)
        /* Dump gimple statement statistics.  */
        cgraph_node *node;
        FOR_EACH_DEFINED_FUNCTION (node)
-	node->get_untransformed_body ();
+	if (!node->alias)
+	  node->get_untransformed_body ();
        if (!GATHER_STATISTICS)
  	warning_at (input_location, 0,
  		    "Not configured with "
-- 
2.38.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-27  8:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-27  8:30 [PATCH (pushed)] lto: do not load LTO stream for aliases [PR107418] Martin Liška

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).