public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/106867] New: [13 Regression] ICE in set, at value-range.cc:372
@ 2022-09-07  5:34 asolokha at gmx dot com
  2022-09-07  9:00 ` [Bug tree-optimization/106867] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: asolokha at gmx dot com @ 2022-09-07  5:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106867
           Summary: [13 Regression] ICE in set, at value-range.cc:372
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc 13.0.0 20220904 snapshot (g:20d30e737ad79dc36817e59f1676aa8bc0c6b325) ICEs
when compiling the following testcase, reduced from
gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4.c, w/ -O2 -fno-tree-fre:

double m;
int n;

void
foo (void)
{
  static double a[] = { 0.0 / 0.0, 0.0 };
  int i;

  for (i = 0; i < n; ++i)
    if (m >= a[i])
      __builtin_abort ();
}

% gcc-13.0.0 -O2 -fno-tree-fre -c tjdblerc.c
during GIMPLE pass: thread
tjdblerc.c: In function 'foo':
tjdblerc.c:5:1: internal compiler error: in set, at value-range.cc:372
    5 | foo (void)
      | ^~~
0x7b3cfd frange::set(tree_node*, tree_node*, value_range_kind)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/value-range.cc:372
0x1e4f973 build_le
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/range-op-float.cc:240
0x1e4f973 build_lt
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/range-op-float.cc:249
0x1e4f973 foperator_le::op2_range(frange&, tree_node*, irange const&, frange
const&, relation_kind_t) const
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/range-op-float.cc:660
0x1d32e51 gimple_range_calc_op2(vrange&, gimple const*, vrange const&, vrange
const&)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/gimple-range-gori.cc:105
0x1d368ca gimple_range_calc_op2(vrange&, gimple const*, vrange const&, vrange
const&)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/gimple-range-gori.cc:1143
0x1d368ca gori_compute::compute_operand2_range(vrange&, gimple*, vrange const&,
tree_node*, fur_source&)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/gimple-range-gori.cc:1096
0x1d38718 gori_compute::outgoing_edge_range_p(vrange&, edge_def*, tree_node*,
range_query&)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/gimple-range-gori.cc:1270
0x10a3455 path_range_query::compute_ranges_in_block(basic_block_def*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/gimple-range-path.cc:454
0x10a38a1 path_range_query::compute_ranges(bitmap_head const*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/gimple-range-path.cc:622
0x112bdad back_threader::find_taken_edge_cond(vec<basic_block_def*, va_heap,
vl_ptr> const&, gcond*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/tree-ssa-threadbackward.cc:333
0x112bfb2 back_threader::maybe_register_path(back_threader_profitability&)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/tree-ssa-threadbackward.cc:248
0x112c4c8 back_threader::find_paths_to_names(basic_block_def*, bitmap_head*,
unsigned int, back_threader_profitability&)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/tree-ssa-threadbackward.cc:380
0x112ca44 back_threader::find_paths_to_names(basic_block_def*, bitmap_head*,
unsigned int, back_threader_profitability&)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/tree-ssa-threadbackward.cc:502
0x112ca44 back_threader::find_paths_to_names(basic_block_def*, bitmap_head*,
unsigned int, back_threader_profitability&)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/tree-ssa-threadbackward.cc:502
0x112d4bf back_threader::maybe_thread_block(basic_block_def*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/tree-ssa-threadbackward.cc:574
0x112d561 back_threader::thread_blocks()
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/tree-ssa-threadbackward.cc:1002
0x112d5d3 execute
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20220904/work/gcc-13-20220904/gcc/tree-ssa-threadbackward.cc:1104

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

* [Bug tree-optimization/106867] [13 Regression] ICE in set, at value-range.cc:372
  2022-09-07  5:34 [Bug tree-optimization/106867] New: [13 Regression] ICE in set, at value-range.cc:372 asolokha at gmx dot com
@ 2022-09-07  9:00 ` rguenth at gcc dot gnu.org
  2022-09-07  9:25 ` aldyh at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-09-07  9:00 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aldyh at gcc dot gnu.org
   Target Milestone|---                         |13.0

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

* [Bug tree-optimization/106867] [13 Regression] ICE in set, at value-range.cc:372
  2022-09-07  5:34 [Bug tree-optimization/106867] New: [13 Regression] ICE in set, at value-range.cc:372 asolokha at gmx dot com
  2022-09-07  9:00 ` [Bug tree-optimization/106867] " rguenth at gcc dot gnu.org
@ 2022-09-07  9:25 ` aldyh at gcc dot gnu.org
  2022-09-07  9:36 ` jakub at gcc dot gnu.org
  2022-09-07 11:04 ` cvs-commit at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: aldyh at gcc dot gnu.org @ 2022-09-07  9:25 UTC (permalink / raw)
  To: gcc-bugs

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

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #1 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Looks like it got fixed in the last few patches in this area.

Both the cited patch and the original fp-cmp-4.c test pass for -O2
-fno-tree-fre.

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

* [Bug tree-optimization/106867] [13 Regression] ICE in set, at value-range.cc:372
  2022-09-07  5:34 [Bug tree-optimization/106867] New: [13 Regression] ICE in set, at value-range.cc:372 asolokha at gmx dot com
  2022-09-07  9:00 ` [Bug tree-optimization/106867] " rguenth at gcc dot gnu.org
  2022-09-07  9:25 ` aldyh at gcc dot gnu.org
@ 2022-09-07  9:36 ` jakub at gcc dot gnu.org
  2022-09-07 11:04 ` cvs-commit at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-09-07  9:36 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Wouldn't hurt to add it as a compile time testcase though (with those options).

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

* [Bug tree-optimization/106867] [13 Regression] ICE in set, at value-range.cc:372
  2022-09-07  5:34 [Bug tree-optimization/106867] New: [13 Regression] ICE in set, at value-range.cc:372 asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2022-09-07  9:36 ` jakub at gcc dot gnu.org
@ 2022-09-07 11:04 ` cvs-commit at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-07 11:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Aldy Hernandez <aldyh@gcc.gnu.org>:

https://gcc.gnu.org/g:22cefe5c22a90d20e2d9f629402b0522c03fa59c

commit r13-2516-g22cefe5c22a90d20e2d9f629402b0522c03fa59c
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Wed Sep 7 12:58:49 2022 +0200

    [PR106867] Add test for PR.

            PR tree-optimization/106867

    gcc/testsuite/ChangeLog:

            * gcc.dg/tree-ssa/pr106867.c: New test.

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

end of thread, other threads:[~2022-09-07 11:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-07  5:34 [Bug tree-optimization/106867] New: [13 Regression] ICE in set, at value-range.cc:372 asolokha at gmx dot com
2022-09-07  9:00 ` [Bug tree-optimization/106867] " rguenth at gcc dot gnu.org
2022-09-07  9:25 ` aldyh at gcc dot gnu.org
2022-09-07  9:36 ` jakub at gcc dot gnu.org
2022-09-07 11:04 ` cvs-commit 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).