public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/107210] New: [13 Regression] ICE in tree_to_uhwi, at tree.cc:6392
@ 2022-10-11  4:39 asolokha at gmx dot com
  2022-10-11  7:23 ` [Bug analyzer/107210] [13 Regression] ICE in tree_to_uhwi, at tree.cc:6392 since r13-3168-gf09b99550a3c6cd1 marxin at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: asolokha at gmx dot com @ 2022-10-11  4:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107210
           Summary: [13 Regression] ICE in tree_to_uhwi, at tree.cc:6392
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gfortran 13.0.0 20221009 snapshot (g:e95e91eccd022a4a3a86da2749809fbad9afd20e)
ICEs when compiling the following testcase, reduced from
gcc/testsuite/gfortran.dg/sizeof.f90, w/ -O1 -fanalyzer:

subroutine check_int (j)
  INTEGER(4) :: i, ia(5), ib(5,4), ip, ipa(:)
  target :: ib
  POINTER :: ip, ipa
  logical :: l(5)

  l = (/ sizeof(i) == 4, sizeof(ia) == 20, sizeof(ib) == 80, &
       sizeof(ip) == 4, sizeof(ipa) == 8 /)

  if (any(.not.l)) STOP 4

end subroutine check_int

% gfortran-13 -O1 -fanalyzer -c twz5zkp4.f90
during IPA pass: analyzer
twz5zkp4.f90:8:43:

    8 |        sizeof(ip) == 4, sizeof(ipa) == 8 /)
      |                                           ^
internal compiler error: in tree_to_uhwi, at tree.cc:6392
0x7ad4c3 tree_to_uhwi(tree_node const*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/tree.cc:6392
0x7ad4c3 tree_to_uhwi(tree_node const*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/tree.cc:6390
0x13dbc17 ana::constant_svalue::maybe_fold_bits_within(tree_node*,
ana::bit_range const&, ana::region_model_manager*) const
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/svalue.cc:891
0x13dbc17 ana::constant_svalue::maybe_fold_bits_within(tree_node*,
ana::bit_range const&, ana::region_model_manager*) const
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/svalue.cc:870
0x13a089d ana::region_model_manager::maybe_fold_bits_within_svalue(tree_node*,
ana::bit_range const&, ana::svalue const*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/region-model-manager.cc:1025
0x13a11aa ana::region_model_manager::get_or_create_bits_within(tree_node*,
ana::bit_range const&, ana::svalue const*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/region-model-manager.cc:1116
0x13cc1e3 ana::binding_cluster::maybe_get_compound_binding(ana::store_manager*,
ana::region const*) const
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/store.cc:1736
0x1374a96 ana::region_model::get_store_value(ana::region const*,
ana::region_model_context*) const
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/region-model.cc:3210
0x137537c ana::region_model::get_rvalue(ana::path_var,
ana::region_model_context*) const
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/region-model.cc:3104
0x137c717 ana::region_model::on_assignment(gassign const*,
ana::region_model_context*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/region-model.cc:1088
0x134f294 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*, ana::uncertainty_t*,
ana::path_context*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/engine.cc:1447
0x135233f ana::exploded_graph::process_node(ana::exploded_node*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/engine.cc:4033
0x13531fa ana::exploded_graph::process_worklist()
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/engine.cc:3436
0x13558ec ana::impl_run_checkers(ana::logger*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/engine.cc:6084
0x135693e ana::run_checkers()
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/engine.cc:6158
0x13451f8 execute
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221009/work/gcc-13-20221009/gcc/analyzer/analyzer-pass.cc:86

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-13 20:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-11  4:39 [Bug analyzer/107210] New: [13 Regression] ICE in tree_to_uhwi, at tree.cc:6392 asolokha at gmx dot com
2022-10-11  7:23 ` [Bug analyzer/107210] [13 Regression] ICE in tree_to_uhwi, at tree.cc:6392 since r13-3168-gf09b99550a3c6cd1 marxin at gcc dot gnu.org
2022-10-11  7:27 ` rguenth at gcc dot gnu.org
2022-10-13 20:06 ` cvs-commit at gcc dot gnu.org
2022-10-13 20:11 ` dmalcolm at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).