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

            Bug ID: 86925
           Summary: ice in get_predictor_value, at pre dict.c:2551
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 44530
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44530&action=edit
C source code

For the attached C code, compiled with flag -O2 and recent gcc trunk:

../results.263455/bin/gcc
../results.263471.ubsan/bin/gcc
during GIMPLE pass: profile_estimate
gstsystemclock.c: In function ‘gst_system_clock_id_wait_jitter_unlocked’:
gstsystemclock.c:1026:1: internal compiler error: in get_predictor_value, at
pre
dict.c:2551
0x611f7d get_predictor_value
        ../../trunk/gcc/predict.c:2551
0x1bce7d3 tree_predict_by_opcode
        ../../trunk/gcc/predict.c:2586
0x1bce7d3 tree_estimate_probability_bb
        ../../trunk/gcc/predict.c:2969
0x1bffc99 tree_estimate_probability(bool)
        ../../trunk/gcc/predict.c:2997

So the problem seems to have started between revisions 263455 and 263471.

I'll have a go at reducing the code.

Reply via email to