public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "zhendong.su at inf dot ethz.ch" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/111043] [14 regression] ICE in adjust_loop_info_after_peeling, at tree-ssa-loop-ivcanon.cc:1068
Date: Wed, 01 Nov 2023 07:32:36 +0000	[thread overview]
Message-ID: <bug-111043-4-OZC2YJFhCp@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-111043-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #9 from Zhendong Su <zhendong.su at inf dot ethz.ch> ---
Another at -O2 and -O3:

[545] % gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --disable-bootstrap
--enable-checking=yes --prefix=/local/suz-local/software/local/gcc-trunk
--enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.0 20231101 (experimental) (GCC) 
[546] % 
[546] % gcctk -O2 small.c
during GIMPLE pass: ch_vect
small.c: In function ‘main’:
small.c:21:5: internal compiler error: in adjust_loop_info_after_peeling, at
tree-ssa-loop-ivcanon.cc:1069
   21 | int main() {
      |     ^~~~
0x8736bd adjust_loop_info_after_peeling(loop*, int, bool)
        ../../gcc-trunk/gcc/tree-ssa-loop-ivcanon.cc:1069
0x1287a14 copy_headers
        ../../gcc-trunk/gcc/tree-ssa-loop-ch.cc:1108
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.
[547] % 
[547] % cat small.c
int a, *b, c, *d, e, f;
static void g() {
  int h;
    while (1)
      while (1) {
        int *i = 0;
        h = 0;
        while (c)
          *d = 1;
        if (e)
          break;
        if ((h ^ f) > f)
          for (; e < 1; e++)
            ;
        for (a = 0; a < 1; a++)
          if (*i)
            break;
        b = &h;
      }
}
int main() {
  if (a)
    g();
  return 0;
}

  parent reply	other threads:[~2023-11-01  7:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-16 20:39 [Bug c/111043] New: " 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-111043-4-OZC2YJFhCp@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).