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

            Bug ID: 93798
           Summary: ICE in make_region_for_type
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: david.bolvansky at gmail dot com
  Target Milestone: ---

Created attachment 47865
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47865&action=edit
preprocessed zstd source file

Using latest snapshot: gcc-latest_10.0.1-20200126git787c79e559f5.deb
(https://jwakely.github.io/pkg-gcc-latest/)

How to reproduce:
gcc -fanalyzer -O3 preprocessed.c 


ICE log:
during IPA pass: analyzer
entropy_common.c: In function ‘HUF_readStats’:
entropy_common.c:196:35: internal compiler error: in make_region_for_type, at
analyzer/region-model.cc:5983
  196 |                 huffWeight[n]   = ip[n/2] >> 4;
      |                                   ^
0x1128bb9 make_region_for_type
        ../../gcc/analyzer/region-model.cc:5983
0x1128bb9 ana::region_model::add_region_for_type(ana::region_id, tree_node*)
        ../../gcc/analyzer/region-model.cc:5993
0x11307d5 ana::array_region::get_or_create(ana::region_model*, ana::region_id,
int, tree_node*)
        ../../gcc/analyzer/region-model.cc:2331
0x1130bc2 ana::array_region::get_element(ana::region_model*, ana::region_id,
ana::svalue_id, ana::region_model_context*)
        ../../gcc/analyzer/region-model.cc:2195
0x1130da3 ana::region_model::get_or_create_mem_ref(tree_node*, ana::svalue_id,
ana::svalue_id, ana::region_model_context*)
        ../../gcc/analyzer/region-model.cc:6526
0x11369fa ana::region_model::get_or_create_pointer_plus_expr(tree_node*,
ana::svalue_id, ana::svalue_id, ana::region_model_context*)
        ../../gcc/analyzer/region-model.cc:6546
0x11369fa ana::region_model::on_assignment(gassign const*,
ana::region_model_context*)
        ../../gcc/analyzer/region-model.cc:3977
0x111155b ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*, ana::state_change*) const
        ../../gcc/analyzer/engine.cc:948
0x1111ffb ana::exploded_graph::process_node(ana::exploded_node*)
        ../../gcc/analyzer/engine.cc:2439
0x1112632 ana::exploded_graph::process_worklist()
        ../../gcc/analyzer/engine.cc:2259
0x1113c8e ana::impl_run_checkers(ana::logger*)
        ../../gcc/analyzer/engine.cc:3580
0x111491d ana::run_checkers()
        ../../gcc/analyzer/engine.cc:3634
0x11097d8 execute
        ../../gcc/analyzer/analyzer-pass.cc:84
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to