On Thu, Sep 10, 2020 at 05:32:58PM +0200, Jakub Jelinek via Gcc-patches wrote:
> 2020-09-10  Jakub Jelinek  <ja...@redhat.com>
> 
>       * lto-streamer-out.c (collect_block_tree_leafs): Recurse on
>       root rather than BLOCK_SUBBLOCKS (root).
> 
> --- gcc/lto-streamer-out.c.jj 2020-09-10 15:52:36.401413518 +0200
> +++ gcc/lto-streamer-out.c    2020-09-10 17:14:24.934503237 +0200
> @@ -2294,7 +2294,7 @@ collect_block_tree_leafs (tree root, vec
>      if (! BLOCK_SUBBLOCKS (root))
>        leafs.safe_push (root);
>      else
> -      collect_block_tree_leafs (BLOCK_SUBBLOCKS (root), leafs);
> +      collect_block_tree_leafs (root, leafs);
>  }
>  
>  /* This performs function body modifications that are needed for streaming

Successfully lto-bootstrapped/regtested on x86_64-linux.  As a very rough 
estimate
(not exactly the same tree, 22 hours appart), *.o files in the stage3 directory 
grew
from 522432KB to 524760KB together (slim LTO), so 0.4% growth.

        Jakub

Reply via email to