public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111043] New: ICE in adjust_loop_info_after_peeling, at tree-ssa-loop-ivcanon.cc:1068
@ 2023-08-16 20:39 shaohua.li at inf dot ethz.ch
  2023-08-16 20:43 ` [Bug tree-optimization/111043] [14 regression] " pinskia at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: shaohua.li at inf dot ethz.ch @ 2023-08-16 20:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111043
           Summary: ICE in adjust_loop_info_after_peeling, at
                    tree-ssa-loop-ivcanon.cc:1068
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: shaohua.li at inf dot ethz.ch
                CC: jh at suse dot cz
  Target Milestone: ---

gcc crashes at -O2 on the following test case.

Bisected to r14-2675-gef28aadad6e, could be similar to bug 110769 and bug
110641, but the bisection points are different.

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

$ cat a.c
int a, b, c, d;
short e;
int f() {
  a = 1;
  while (a) {
    c = b % a;
    b = a;
    a = c;
  }
  return b;
}
int g() {
  d = 0;
  for (; d <= 1; d++)
    e = 0;
  for (; f() + d - 3 + e; e = e + 8)
    ;
}
int main() {}
$
$ gcc-r14-2675-gef28aadad6e  -O2 a.c
during GIMPLE pass: ch_vect
a.c: In function ‘g’:
a.c:12:5: internal compiler error: in adjust_loop_info_after_peeling, at
tree-ssa-loop-ivcanon.cc:1068
   12 | int g() {
      |     ^
0x21789ce internal_error(char const*, ...)
        ???:0
0x9d3f84 fancy_abort(char const*, int, char const*)
        ???:0
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] 12+ messages in thread

end of thread, other threads:[~2024-01-11 13:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-16 20:39 [Bug c/111043] New: ICE in adjust_loop_info_after_peeling, at tree-ssa-loop-ivcanon.cc:1068 shaohua.li at inf dot ethz.ch
2023-08-16 20:43 ` [Bug tree-optimization/111043] [14 regression] " pinskia at gcc dot gnu.org
2023-08-17 10:46 ` dcb314 at hotmail dot com
2023-08-18  8:10 ` dcb314 at hotmail dot com
2023-08-18  8:27 ` dcb314 at hotmail dot com
2023-08-18  8:38 ` dcb314 at hotmail dot com
2023-08-20  7:51 ` pinskia at gcc dot gnu.org
2023-09-03 10:06 ` zhendong.su at inf dot ethz.ch
2023-09-17 17:11 ` dcb314 at hotmail dot com
2023-10-17 12:25 ` rguenth at gcc dot gnu.org
2023-11-01  7:32 ` zhendong.su at inf dot ethz.ch
2024-01-11 13:52 ` [Bug tree-optimization/111043] [14 regression] ICE in adjust_loop_info_after_peeling, at tree-ssa-loop-ivcanon.cc:1068 since r14-2675-gef28aadad6e5cf 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).