http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55551



--- Comment #8 from Markus Trippelsdorf <markus at trippelsdorf dot de> 
2012-12-01 09:01:33 UTC ---

(In reply to comment #5)

> 

> Index: lto-cgraph.c

> ===================================================================

> --- lto-cgraph.c        (revision 193999)

> +++ lto-cgraph.c        (working copy)

> @@ -1345,7 +1345,8 @@ merge_profile_summaries (struct lto_file_decl_data

>          /* Save a pointer to the profile_info with the largest

>             scaled sum_all and the scale for use in merging the

>             histogram.  */

> -        if (lto_gcov_summary.sum_all > saved_sum_all)

> +        if (!saved_profile_info

> +            || lto_gcov_summary.sum_all > saved_sum_all)

>            {

>              saved_profile_info = &file_data->profile_info;

>              saved_sum_all = lto_gcov_summary.sum_all;

> 

> Can you try adding this patch and seeing if that fixes the issue? I

> will hold off on sending the first fix for review  to see if I should

> add this one.



Yes this fixes the issue. Firefox now builds fine.

Thanks.

Reply via email to