public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-8872] lto: do not load LTO stream for aliases [PR107418]
@ 2022-10-27 8:33 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-10-27 8:33 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ca0220d42e075194ca1341c98a0a9a9f3fd1c719
commit r12-8872-gca0220d42e075194ca1341c98a0a9a9f3fd1c719
Author: Martin Liska <mliska@suse.cz>
Date: Thu Oct 27 10:29:17 2022 +0200
lto: do not load LTO stream for aliases [PR107418]
PR lto/107418
gcc/lto/ChangeLog:
* lto-dump.cc (lto_main): Do not load LTO stream for aliases.
(cherry picked from commit be6c75547385c69706370f4e792b04295f708a5a)
Diff:
---
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 1fb3fb86fb5..7dd3ac7b96d 100644
--- a/gcc/lto/lto-dump.cc
+++ b/gcc/lto/lto-dump.cc
@@ -344,7 +344,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 "
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-27 8:33 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:33 [gcc r12-8872] lto: do not load LTO stream for aliases [PR107418] Martin Liska
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).