]> 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:30:41 +0000 (10:30 +0200)
PR lto/107418

gcc/lto/ChangeLog:

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

gcc/lto/lto-dump.cc

index f3d852df51f5e7fabde40315ead63fc9a6a49c1c..cb9782722a9b5152b7b6d8cd434e006c4202bc81 100644 (file)
@@ -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 "