public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/112848] New: [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535
@ 2023-12-04 16:35 seurer at gcc dot gnu.org
  2023-12-04 16:37 ` [Bug tree-optimization/112848] " seurer at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: seurer at gcc dot gnu.org @ 2023-12-04 16:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112848
           Summary: [14 regression] ICE compiling
                    gcc.dg/tree-ssa/ssa-sink-16.c after
                    r14-6114-gde0ab339a79535
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

g:de0ab339a795352c843f6e9b2dfce222f26588de, r14-6114-gde0ab339a79535
make  -k check-gcc RUNTESTFLAGS="tree-ssa.exp=gcc.dg/tree-ssa/ssa-sink-16.c"
FAIL: gcc.dg/tree-ssa/ssa-sink-16.c (internal compiler error: verify_gimple
failed)
FAIL: gcc.dg/tree-ssa/ssa-sink-16.c (test for excess errors)
# of expected passes            1
# of unexpected failures        2
# of unresolved testcases       1


commit de0ab339a795352c843f6e9b2dfce222f26588de (HEAD)
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Dec 4 10:46:11 2023 +0100

    tree-optimization/112827 - corrupt SCEV cache during SCCP


spawn -ignore SIGHUP /home/seurer/gcc/git/build/gcc-test/gcc/xgcc
-B/home/seurer/gcc/git/build/gcc-test/gcc/
/home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-16.c
-fdiagnostics-plain-output -O2 -fno-tree-pre -fno-tree-dominator-opts
-fdump-tree-sink -fdump-tree-optimized -S -o ssa-sink-16.s
/home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-16.c: In
function 'f':
/home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-16.c:5:5:
error: gimple_bb (stmt) is set to a wrong basic block
j_5 = __builtin_ffs (30);
during GIMPLE pass: sccp
/home/seurer/gcc/git/gcc-test/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-16.c:5:5:
internal compiler error: verify_gimple failed
0x10d6df93 verify_gimple_in_cfg(function*, bool, bool)
        /home/seurer/gcc/git/gcc-test/gcc/tree-cfg.cc:5662
0x10b5041f execute_function_todo
        /home/seurer/gcc/git/gcc-test/gcc/passes.cc:2088
0x10b513eb do_per_function
        /home/seurer/gcc/git/gcc-test/gcc/passes.cc:1687
0x10b5160b execute_todo
        /home/seurer/gcc/git/gcc-test/gcc/passes.cc:2142


Note that this is not fixed by
r14-6114-gde0ab339a795352c843f6e9b2dfce222f26588de as it still occurs with
r14-6120.

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

* [Bug tree-optimization/112848] [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535
  2023-12-04 16:35 [Bug tree-optimization/112848] New: [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535 seurer at gcc dot gnu.org
@ 2023-12-04 16:37 ` seurer at gcc dot gnu.org
  2023-12-04 17:00 ` law at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: seurer at gcc dot gnu.org @ 2023-12-04 16:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from seurer at gcc dot gnu.org ---
Of course it fails with r14-6114 as that is the source.  Doh!  I was looking at
pr112827.

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

* [Bug tree-optimization/112848] [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535
  2023-12-04 16:35 [Bug tree-optimization/112848] New: [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535 seurer at gcc dot gnu.org
  2023-12-04 16:37 ` [Bug tree-optimization/112848] " seurer at gcc dot gnu.org
@ 2023-12-04 17:00 ` law at gcc dot gnu.org
  2023-12-04 17:08 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: law at gcc dot gnu.org @ 2023-12-04 17:00 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2023-12-04
     Ever confirmed|0                           |1
                 CC|                            |law at gcc dot gnu.org

--- Comment #2 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Also seeing on microblaze-linux.

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

* [Bug tree-optimization/112848] [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535
  2023-12-04 16:35 [Bug tree-optimization/112848] New: [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535 seurer at gcc dot gnu.org
  2023-12-04 16:37 ` [Bug tree-optimization/112848] " seurer at gcc dot gnu.org
  2023-12-04 17:00 ` law at gcc dot gnu.org
@ 2023-12-04 17:08 ` pinskia at gcc dot gnu.org
  2023-12-05  7:30 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-04 17:08 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
                 CC|                            |pinskia at gcc dot gnu.org
   Target Milestone|---                         |14.0

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

* [Bug tree-optimization/112848] [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535
  2023-12-04 16:35 [Bug tree-optimization/112848] New: [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535 seurer at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2023-12-04 17:08 ` pinskia at gcc dot gnu.org
@ 2023-12-05  7:30 ` cvs-commit at gcc dot gnu.org
  2023-12-05  7:32 ` rguenth at gcc dot gnu.org
  2023-12-07  8:11 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-12-05  7:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:50f2a3370d177f8fe9bea0461feb710523e048a2

commit r14-6132-g50f2a3370d177f8fe9bea0461feb710523e048a2
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Dec 4 15:46:38 2023 +0100

    tree-optimization/112827 - more SCEV cprop fixes

    The insert iteration can be corrupted by foldings of replace_uses_by,
    within this particular PHI replacement but also with subsequent ones.
    Recompute the insert location before insertion instead.

    This fixes an obvserved ICE of gcc.dg/tree-ssa/ssa-sink-16.c.

            PR tree-optimization/112827
            PR tree-optimization/112848
            * tree-scalar-evolution.cc (final_value_replacement_loop):
            Compute the insert location for each insert.

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

* [Bug tree-optimization/112848] [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535
  2023-12-04 16:35 [Bug tree-optimization/112848] New: [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535 seurer at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2023-12-05  7:30 ` cvs-commit at gcc dot gnu.org
@ 2023-12-05  7:32 ` rguenth at gcc dot gnu.org
  2023-12-07  8:11 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-12-05  7:32 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.

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

* [Bug tree-optimization/112848] [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535
  2023-12-04 16:35 [Bug tree-optimization/112848] New: [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535 seurer at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2023-12-05  7:32 ` rguenth at gcc dot gnu.org
@ 2023-12-07  8:11 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-12-07  8:11 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 112885 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2023-12-07  8:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-04 16:35 [Bug tree-optimization/112848] New: [14 regression] ICE compiling gcc.dg/tree-ssa/ssa-sink-16.c after r14-6114-gde0ab339a79535 seurer at gcc dot gnu.org
2023-12-04 16:37 ` [Bug tree-optimization/112848] " seurer at gcc dot gnu.org
2023-12-04 17:00 ` law at gcc dot gnu.org
2023-12-04 17:08 ` pinskia at gcc dot gnu.org
2023-12-05  7:30 ` cvs-commit at gcc dot gnu.org
2023-12-05  7:32 ` rguenth at gcc dot gnu.org
2023-12-07  8:11 ` rguenth 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).