https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87134

--- Comment #5 from rguenther at suse dot de <rguenther at suse dot de> ---
On Thu, 30 Aug 2018, ro at CeBiTec dot Uni-Bielefeld.DE wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87134
> 
> --- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
> Uni-Bielefeld.DE> ---
> > --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
> > You also might want to test the patch from PR87132.
> 
> I had it in my tree already last night.  I've now retried the exact same
> tree without libumem, and now get an ICE in stage2 compiling gimplify.c:

OK, so at least that one cannot be caused by stage1 miscompiling stage2
cc1[plus].

I wonder if you can run the testsuite in the not bootstrapped tree
and look for sth suspicious.

There is uninitialized memory (but it should never be used...) in
the new VN, so a shot in the dark would be

Index: gcc/tree-ssa-sccvn.c
===================================================================
--- gcc/tree-ssa-sccvn.c        (revision 263972)
+++ gcc/tree-ssa-sccvn.c        (working copy)
@@ -6240,7 +6240,7 @@ do_rpo_vn (function *fn, edge entry, bit
   for (int i = 0; i < n; ++i)
     bb_to_rpo[rpo[i]] = i;

-  unwind_state *rpo_state = XNEWVEC (unwind_state, n);
+  unwind_state *rpo_state = XCNEWVEC (unwind_state, n);

   rpo_elim avail (entry->dest);
   rpo_avail = &avail;

> during IPA pass: fnsummary
> /vol/gcc/src/hg/trunk/local/gcc/gimplify.c: In function ‘void
> gimplify_scan_omp_clauses(tree_node**, gimple**, omp_region_type, tree_code)’:
> /vol/gcc/src/hg/trunk/local/gcc/gimplify.c:13162:1: internal compiler error: 
> in
> compute_fn_summary, at ipa-fnsummary.c:2492
> 13162 | }
>       | ^
> 0x9400a42 compute_fn_summary(cgraph_node*, bool)
>         /vol/gcc/src/hg/trunk/local/gcc/ipa-fnsummary.c:2492
> 0x94029f2 inline_analyze_function(cgraph_node*)
>         /vol/gcc/src/hg/trunk/local/gcc/ipa-fnsummary.c:3146
> 0x9402b8c ipa_fn_summary_generate
>         /vol/gcc/src/hg/trunk/local/gcc/ipa-fnsummary.c:3189
> 0x956db21 execute_ipa_summary_passes(ipa_opt_pass_d*)
>         /vol/gcc/src/hg/trunk/local/gcc/passes.c:2149
> 0x9161451 ipa_passes
>         /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:2432
> 0x91617c4 symbol_table::compile()
>         /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:2543
> 0x9161e4b symbol_table::finalize_compilation_unit()
>         /vol/gcc/src/hg/trunk/local/gcc/cgraphunit.c:2788

Given this is the stage1 compiler complaining it looks unrelated.

What's your host compiler?  Do you use custom STAGE1_CFLAGS?

Reply via email to