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

            Bug ID: 97233
           Summary: [11 Regression] ICE in deref_rvalue, at
                    analyzer/region-model.cc:1465
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-11.0.0-alpha20200927 snapshot (g:e24817aa7a1c6d12039b486ab5ea9b5ee0a46cd4)
ICEs when compiling the following testcase w/ -fanalyzer:

void
longjmp (__SIZE_TYPE__, int);

void
e7 (__SIZE_TYPE__ gr)
{
  longjmp (gr, 1);
}

% gcc-11.0.0 -fanalyzer -c tdkztnou.c
during IPA pass: analyzer
tdkztnou.c: In function 'e7':
tdkztnou.c:7:3: internal compiler error: in deref_rvalue, at
analyzer/region-model.cc:1465
    7 |   longjmp (gr, 1);
      |   ^~~~~~~~~~~~~~~
0x7345b8 ana::region_model::deref_rvalue(ana::svalue const*, tree_node*,
ana::region_model_context*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/analyzer/region-model.cc:1465
0x1128c06 ana::exploded_node::on_longjmp(ana::exploded_graph&, gcall const*,
ana::program_state*, ana::region_model_context*) const
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/analyzer/engine.cc:1283
0x1129383 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*) const
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/analyzer/engine.cc:1133
0x112ae65 ana::exploded_graph::process_node(ana::exploded_node*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/analyzer/engine.cc:2811
0x112b94a ana::exploded_graph::process_worklist()
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/analyzer/engine.cc:2446
0x112da6d ana::impl_run_checkers(ana::logger*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/analyzer/engine.cc:4498
0x112e8bc ana::run_checkers()
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/analyzer/engine.cc:4569
0x1121e38 execute
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200927/work/gcc-11-20200927/gcc/analyzer/analyzer-pass.cc:84

Reply via email to