public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/111389] New: ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.cc:647
@ 2023-09-12 16:20 shaohua.li at inf dot ethz.ch
  2023-09-12 16:23 ` [Bug tree-optimization/111389] [14 Regression] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: shaohua.li at inf dot ethz.ch @ 2023-09-12 16:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111389
           Summary: ICE in check_loop_closed_ssa_def, at
                    tree-ssa-loop-manip.cc:647
           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: hubicka at gcc dot gnu.org
  Target Milestone: ---

gcc at -O2 crashes on the following testcase.

Bisected to r14-301-gf2d6beb7a4d

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

$cat a.c
int *a;
char b;
int d;
int e(int f) {
  int c = 0;
  for (; f > 1; c++)
    f >>= 1;
  return c;
}
void g() {
  for (;;) {
    for (; d; d++)
      ;
    b = 0;
    for (; e(92) - 6 + b; b = b + 8)
      *a = 0;
  }
}
int main() {}
$ gcc -O0 a.c && ./a.out
$ gcc -O2 a.c
during GIMPLE pass: ch_vect
a.c: In function ‘g’:
a.c:10:6: internal compiler error: in check_loop_closed_ssa_def, at
tree-ssa-loop-manip.cc:645
   10 | void g() {
      |      ^
0x7f8ffe5f1082 __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] 6+ messages in thread

end of thread, other threads:[~2023-12-05 13:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12 16:20 [Bug tree-optimization/111389] New: ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.cc:647 shaohua.li at inf dot ethz.ch
2023-09-12 16:23 ` [Bug tree-optimization/111389] [14 Regression] " pinskia at gcc dot gnu.org
2023-09-13  6:59 ` rguenth at gcc dot gnu.org
2023-10-03 22:24 ` pinskia at gcc dot gnu.org
2023-11-05 21:55 ` pinskia at gcc dot gnu.org
2023-12-05 13:16 ` 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).