Fix Libreoffice LTO build failure

Aldy Hernandez aldyh@redhat.com
Thu Sep 11 15:34:00 GMT 2014


Jan Hubicka <hubicka@ucw.cz> writes:


> Hi,
> Libreoffice fails to build because ltrans tries to fetch in variable constructor
> that is not shipped there.  Fixed thus.
>
> Bootstrapped/regtested x86_64-linux.
>
> Honza
>
> 	* varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
> 	to access removed nodes.
>
> Index: varpool.c
> ===================================================================
> --- varpool.c	(revision 215100)
> +++ varpool.c	(working copy)
> @@ -316,6 +316,11 @@ varpool_node::ctor_useable_for_folding_p
>        && !real_node->lto_file_data)
>      return false;
>  
> +  /* Avoid attempts to load constructors that was not streamed.  */

that *were* not streamed.  Plural.

Aldy



More information about the Gcc-patches mailing list