]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lto: do not load LTO stream for aliases [PR107418]
authorMartin Liska <mliska@suse.cz>
Thu, 27 Oct 2022 08:29:17 +0000 (10:29 +0200)
committerMartin Liska <mliska@suse.cz>
Thu, 27 Oct 2022 08:33:07 +0000 (10:33 +0200)
PR lto/107418

gcc/lto/ChangeLog:

* lto-dump.cc (lto_main): Do not load LTO stream for aliases.

(cherry picked from commit be6c75547385c69706370f4e792b04295f708a5a)

gcc/lto/lto-dump.cc

index 1fb3fb86fb5111d79efd266c122778faef2e3543..7dd3ac7b96d34f30c78a21be2a7b229776d1ea78 100644 (file)
@@ -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 "