public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/107490] New: [13 Regression] ICE in build_ge, at range-op-float.cc:283
@ 2022-11-01  9:48 asolokha at gmx dot com
  2022-11-01 15:49 ` [Bug tree-optimization/107490] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: asolokha at gmx dot com @ 2022-11-01  9:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107490
           Summary: [13 Regression] ICE in build_ge, at
                    range-op-float.cc:283
           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 20221030 snapshot (g:f36bba013361d8d4f9c7237c3307630de0cc0416) ICEs
when compiling gcc/testsuite/gcc.dg/tree-ssa/pr23115.c w/ -Os
-fsingle-precision-constant -fno-trapping-math:

% gcc-13 -Os -fsingle-precision-constant -fno-trapping-math -c
gcc/testsuite/gcc.dg/tree-ssa/pr23115.c
gcc/testsuite/gcc.dg/tree-ssa/pr23115.c: In function 'main':
gcc/testsuite/gcc.dg/tree-ssa/pr23115.c:16:3: warning: floating constant
exceeds range of 'float' [-Woverflow]
   16 |   n = 1.e300;
      |   ^
gcc/testsuite/gcc.dg/tree-ssa/pr23115.c:17:3: warning: floating constant
exceeds range of 'float' [-Woverflow]
   17 |   x = -1.e300;
      |   ^
during GIMPLE pass: threadfull
gcc/testsuite/gcc.dg/tree-ssa/pr23115.c:11:5: internal compiler error: in
build_ge, at range-op-float.cc:283
   11 | int main()
      |     ^~~~
0x869e96 build_ge
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/range-op-float.cc:283
0x1e874ce foperator_unordered_le::op2_range(frange&, tree_node*, irange const&,
frange const&, relation_trio) const
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/range-op-float.cc:1451
0x1d67151 gori_compute::compute_operand2_range(vrange&,
gimple_range_op_handler&, vrange const&, tree_node*, fur_source&,
value_relation*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/gimple-range-gori.cc:1196
0x1d65c53 gori_compute::compute_operand_range(vrange&, gimple*, vrange const&,
tree_node*, fur_source&, value_relation*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/gimple-range-gori.cc:694
0x1d6941a gori_compute::outgoing_edge_range_p(vrange&, edge_def*, tree_node*,
range_query&)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/gimple-range-gori.cc:1373
0x10bb264 path_range_query::compute_ranges_in_block(basic_block_def*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/gimple-range-path.cc:454
0x10bb941 path_range_query::compute_ranges(bitmap_head const*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/gimple-range-path.cc:622
0x11443dd 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_p20221030/work/gcc-13-20221030/gcc/tree-ssa-threadbackward.cc:333
0x11445e2 back_threader::maybe_register_path(back_threader_profitability&)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/tree-ssa-threadbackward.cc:248
0x1144af8 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_p20221030/work/gcc-13-20221030/gcc/tree-ssa-threadbackward.cc:380
0x1145059 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_p20221030/work/gcc-13-20221030/gcc/tree-ssa-threadbackward.cc:488
0x1145059 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_p20221030/work/gcc-13-20221030/gcc/tree-ssa-threadbackward.cc:488
0x1145a1f back_threader::maybe_thread_block(basic_block_def*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/tree-ssa-threadbackward.cc:560
0x1145ad1 back_threader::thread_blocks()
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/tree-ssa-threadbackward.cc:988
0x1145bb3 execute
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221030/work/gcc-13-20221030/gcc/tree-ssa-threadbackward.cc:1118

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

* [Bug tree-optimization/107490] [13 Regression] ICE in build_ge, at range-op-float.cc:283
  2022-11-01  9:48 [Bug tree-optimization/107490] New: [13 Regression] ICE in build_ge, at range-op-float.cc:283 asolokha at gmx dot com
@ 2022-11-01 15:49 ` pinskia at gcc dot gnu.org
  2022-11-01 15:52 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-01 15:49 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.0

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

* [Bug tree-optimization/107490] [13 Regression] ICE in build_ge, at range-op-float.cc:283
  2022-11-01  9:48 [Bug tree-optimization/107490] New: [13 Regression] ICE in build_ge, at range-op-float.cc:283 asolokha at gmx dot com
  2022-11-01 15:49 ` [Bug tree-optimization/107490] " pinskia at gcc dot gnu.org
@ 2022-11-01 15:52 ` pinskia at gcc dot gnu.org
  2022-11-01 15:52 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-01 15:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 53811
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53811&action=edit
testcase, -Os -fno-trapping-math

I changed the testcase so -fsingle-precision-constant is no longer needed; just
add the f to the end of the constants.

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

* [Bug tree-optimization/107490] [13 Regression] ICE in build_ge, at range-op-float.cc:283
  2022-11-01  9:48 [Bug tree-optimization/107490] New: [13 Regression] ICE in build_ge, at range-op-float.cc:283 asolokha at gmx dot com
  2022-11-01 15:49 ` [Bug tree-optimization/107490] " pinskia at gcc dot gnu.org
  2022-11-01 15:52 ` pinskia at gcc dot gnu.org
@ 2022-11-01 15:52 ` pinskia at gcc dot gnu.org
  2022-11-01 16:16 ` aldyh at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-11-01 15:52 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-11-01
     Ever confirmed|0                           |1

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

* [Bug tree-optimization/107490] [13 Regression] ICE in build_ge, at range-op-float.cc:283
  2022-11-01  9:48 [Bug tree-optimization/107490] New: [13 Regression] ICE in build_ge, at range-op-float.cc:283 asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2022-11-01 15:52 ` pinskia at gcc dot gnu.org
@ 2022-11-01 16:16 ` aldyh at gcc dot gnu.org
  2022-11-01 18:24 ` cvs-commit at gcc dot gnu.org
  2022-11-01 18:26 ` aldyh at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: aldyh at gcc dot gnu.org @ 2022-11-01 16:16 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
                 CC|                            |aldyh at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |aldyh at gcc dot gnu.org

--- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
We're trying to solve op2 for:

[1,1] = NAN .UNLE_EXPR. op2

NAN needs to be special cased.

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

* [Bug tree-optimization/107490] [13 Regression] ICE in build_ge, at range-op-float.cc:283
  2022-11-01  9:48 [Bug tree-optimization/107490] New: [13 Regression] ICE in build_ge, at range-op-float.cc:283 asolokha at gmx dot com
                   ` (3 preceding siblings ...)
  2022-11-01 16:16 ` aldyh at gcc dot gnu.org
@ 2022-11-01 18:24 ` cvs-commit at gcc dot gnu.org
  2022-11-01 18:26 ` aldyh at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-11-01 18:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- 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:bdf0018519c39931fdcc7aeffe9e87ba756894d7

commit r13-3598-gbdf0018519c39931fdcc7aeffe9e87ba756894d7
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Tue Nov 1 17:27:39 2022 +0100

    [PR tree-optimization/107490] Handle NANs in op[12]_range.

    None of the build_<OP> functions in range-op handle NANs.  This is by
    design in order to force us to handle NANs specially, because
    "x relop NAN" makes no sense.  This patch fixes a handful of
    op[12]_range entries that weren't handling NANs.

            PR tree-optimization/107490

    gcc/ChangeLog:

            * range-op-float.cc (foperator_unordered_lt::op1_range): Handle
            NANs.
            (foperator_unordered_lt::op2_range): Same.
            (foperator_unordered_le::op1_range): Same.
            (foperator_unordered_le::op2_range): Same.
            (foperator_unordered_gt::op1_range): Same.
            (foperator_unordered_gt::op2_range): Same.
            (foperator_unordered_ge::op1_range): Same.
            (foperator_unordered_ge::op2_range): Same.

    gcc/testsuite/ChangeLog:

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

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

* [Bug tree-optimization/107490] [13 Regression] ICE in build_ge, at range-op-float.cc:283
  2022-11-01  9:48 [Bug tree-optimization/107490] New: [13 Regression] ICE in build_ge, at range-op-float.cc:283 asolokha at gmx dot com
                   ` (4 preceding siblings ...)
  2022-11-01 18:24 ` cvs-commit at gcc dot gnu.org
@ 2022-11-01 18:26 ` aldyh at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: aldyh at gcc dot gnu.org @ 2022-11-01 18:26 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
fixed

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

end of thread, other threads:[~2022-11-01 18:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-01  9:48 [Bug tree-optimization/107490] New: [13 Regression] ICE in build_ge, at range-op-float.cc:283 asolokha at gmx dot com
2022-11-01 15:49 ` [Bug tree-optimization/107490] " pinskia at gcc dot gnu.org
2022-11-01 15:52 ` pinskia at gcc dot gnu.org
2022-11-01 15:52 ` pinskia at gcc dot gnu.org
2022-11-01 16:16 ` aldyh at gcc dot gnu.org
2022-11-01 18:24 ` cvs-commit at gcc dot gnu.org
2022-11-01 18:26 ` aldyh 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).