public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/113725] New: ICE during GIMPLE pass: cunroll
@ 2024-02-02 16:30 shaohua.li at inf dot ethz.ch
  2024-02-02 23:07 ` [Bug tree-optimization/113725] [14 Regression] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: shaohua.li at inf dot ethz.ch @ 2024-02-02 16:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113725
           Summary: ICE during GIMPLE pass: cunroll
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: shaohua.li at inf dot ethz.ch
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

gcc at -O3 crashed on the test case.

Bisected to r14-8683-gb84f8a5e0a7

Compiler explorer: https://godbolt.org/z/qsPvvPx6q

%cat reduced.c
char a;
int b, c, d, e;
int f() {}
void g() {
  for (;;) {
    b = 1;
    for (; b >= 0; b--) {
      int *h = &e;
      for (; d; d++)
        a && (*h = 8);
      c = e;
    }
    for (; f() <= 2;)
      ;
  }
}
int main() {}
%
%gcc -O3 reduced.c
during GIMPLE pass: cunroll
reduced.c: In function ‘g’:
reduced.c:4:6: internal compiler error: Segmentation fault
    4 | void g() {
      |      ^
0x7f07fa09208f ???
       
/build/glibc-wuryBv/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f07fa073082 __libc_start_main
        ../csu/libc-start.c:308
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
%

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

* [Bug tree-optimization/113725] [14 Regression] ICE during GIMPLE pass: cunroll
  2024-02-02 16:30 [Bug tree-optimization/113725] New: ICE during GIMPLE pass: cunroll shaohua.li at inf dot ethz.ch
@ 2024-02-02 23:07 ` pinskia at gcc dot gnu.org
  2024-02-03 22:37 ` [Bug tree-optimization/113725] [14 Regression] ICE during GIMPLE pass: cunroll since r14-8683 pinskia at gcc dot gnu.org
  2024-02-05  8:51 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-02-02 23:07 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ICE during GIMPLE pass:     |[14 Regression] ICE during
                   |cunroll                     |GIMPLE pass: cunroll
   Target Milestone|---                         |14.0
           Keywords|                            |ice-on-valid-code

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

* [Bug tree-optimization/113725] [14 Regression] ICE during GIMPLE pass: cunroll since r14-8683
  2024-02-02 16:30 [Bug tree-optimization/113725] New: ICE during GIMPLE pass: cunroll shaohua.li at inf dot ethz.ch
  2024-02-02 23:07 ` [Bug tree-optimization/113725] [14 Regression] " pinskia at gcc dot gnu.org
@ 2024-02-03 22:37 ` pinskia at gcc dot gnu.org
  2024-02-05  8:51 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-02-03 22:37 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-02-03

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

Keeping eliminated stmt live as copy because of out-of-region uses

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

* [Bug tree-optimization/113725] [14 Regression] ICE during GIMPLE pass: cunroll since r14-8683
  2024-02-02 16:30 [Bug tree-optimization/113725] New: ICE during GIMPLE pass: cunroll shaohua.li at inf dot ethz.ch
  2024-02-02 23:07 ` [Bug tree-optimization/113725] [14 Regression] " pinskia at gcc dot gnu.org
  2024-02-03 22:37 ` [Bug tree-optimization/113725] [14 Regression] ICE during GIMPLE pass: cunroll since r14-8683 pinskia at gcc dot gnu.org
@ 2024-02-05  8:51 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-02-05  8:51 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
dup

*** This bug has been marked as a duplicate of bug 113707 ***

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

end of thread, other threads:[~2024-02-05  8:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-02 16:30 [Bug tree-optimization/113725] New: ICE during GIMPLE pass: cunroll shaohua.li at inf dot ethz.ch
2024-02-02 23:07 ` [Bug tree-optimization/113725] [14 Regression] " pinskia at gcc dot gnu.org
2024-02-03 22:37 ` [Bug tree-optimization/113725] [14 Regression] ICE during GIMPLE pass: cunroll since r14-8683 pinskia at gcc dot gnu.org
2024-02-05  8:51 ` 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).