public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "vsevolod.livinskij at frtk dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/103361] New: ICE in adjust_unroll_factor, at gimple-loop-jam.c:407
Date: Mon, 22 Nov 2021 17:02:13 +0000 [thread overview]
Message-ID: <bug-103361-4@http.gcc.gnu.org/bugzilla/> (raw)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103361
Bug ID: 103361
Summary: ICE in adjust_unroll_factor, at gimple-loop-jam.c:407
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: vsevolod.livinskij at frtk dot ru
Target Milestone: ---
Link to the Compiler Explorer: https://godbolt.org/z/jbKEn7Tdq
Reproducer:
char a, b;
extern unsigned short c[];
extern bool d[];
const unsigned short &e(const unsigned short &f, const unsigned short &g) {
if (g < f)
return g;
return f;
}
void k() {
for (int h = 0; b; h += 3)
for (unsigned long i = 0; i < 11104842004558084287ULL;
i += -11104842004558084300ULL)
for (bool j(e(6, e(6, c[h + i]))); j < (bool)a; j = 7)
d[7] = 0;
}
Error:
>$ g++ -O3 -c func.cpp
during GIMPLE pass: unrolljam
func.cpp: In function 'void k()':
func.cpp:9:6: internal compiler error: in adjust_unroll_factor, at
gimple-loop-jam.c:407
9 | void k() {
| ^
0x93ebce adjust_unroll_factor
/testing/gcc/gcc_src_master/gcc/gimple-loop-jam.c:407
0x93ebce tree_loop_unroll_and_jam
/testing/gcc/gcc_src_master/gcc/gimple-loop-jam.c:551
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
gcc version 12.0.0 20211121 (8fef6f720a5a0a056abfa986ba870bb406ab4716) (GCC)
next reply other threads:[~2021-11-22 17:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-22 17:02 vsevolod.livinskij at frtk dot ru [this message]
2021-11-22 17:10 ` [Bug tree-optimization/103361] [12 Regression] ICE in adjust_unroll_factor, at gimple-loop-jam.c:407 since r12-3677-gf92901a508305f29 marxin at gcc dot gnu.org
2021-11-23 7:31 ` rguenth at gcc dot gnu.org
2021-11-23 9:11 ` rguenth at gcc dot gnu.org
2021-11-23 9:15 ` [Bug tree-optimization/103361] [9/10/11/12 " rguenth at gcc dot gnu.org
2021-11-23 10:04 ` cvs-commit at gcc dot gnu.org
2021-11-23 10:05 ` [Bug tree-optimization/103361] [9/10/11 " rguenth at gcc dot gnu.org
2022-02-17 9:06 ` cvs-commit at gcc dot gnu.org
2022-04-21 12:52 ` [Bug tree-optimization/103361] [9/10 " cvs-commit at gcc dot gnu.org
2022-05-06 11:09 ` [Bug tree-optimization/103361] [9 " cvs-commit at gcc dot gnu.org
2022-05-06 11:09 ` 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-103361-4@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).