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/95649] New: ICE during GIMPLE pass: cunroll
Date: Fri, 12 Jun 2020 05:45:48 +0000	[thread overview]
Message-ID: <bug-95649-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 95649
           Summary: ICE during GIMPLE pass: cunroll
           Product: gcc
           Version: 11.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: ---

Error:
>$ g++ -O2 -c func.cpp
during GIMPLE pass: cunroll
func.cpp: In function ‘void test()’:
func.cpp:4:6: internal compiler error: Segmentation fault
    4 | void test() {
      |      ^~~~
0x1102483 crash_signal
        gcc/toplev.c:328
0x1b58f3b loop_containing_stmt
        gcc/tree-ssa-loop.h:76
0x1b58f3b chrec_contains_symbols_defined_in_loop
        gcc/tree-chrec.c:1009
0x1b59248 chrec_contains_symbols_defined_in_loop
        gcc/tree-chrec.c:1026
0x1b59248 chrec_contains_symbols_defined_in_loop
        gcc/tree-chrec.c:1026
0x1b59248 chrec_contains_symbols_defined_in_loop
        gcc/tree-chrec.c:1026
0x1b593cb chrec_contains_symbols_defined_in_loop(tree_node const*, unsigned
int)
        gcc/tree-chrec.c:1039
0x11dfff3 compute_overall_effect_of_inner_loop(loop*, tree_node*)
        gcc/tree-scalar-evolution.c:473
0x11dfff3 compute_overall_effect_of_inner_loop(loop*, tree_node*)
        gcc/tree-scalar-evolution.c:447
0x11de08c analyze_scalar_evolution_1
        gcc/tree-scalar-evolution.c:1960
0x11deb9d analyze_scalar_evolution(loop*, tree_node*)
        gcc/tree-scalar-evolution.c:2038
0x11df04f instantiate_scev_name
        gcc/tree-scalar-evolution.c:2335
0x11df04f instantiate_scev_r
        gcc/tree-scalar-evolution.c:2636
0x11df1ca instantiate_scev_binary
        gcc/tree-scalar-evolution.c:2466
0x11df1ca instantiate_scev_r
        gcc/tree-scalar-evolution.c:2649
0x11ded9e instantiate_scev_poly
        gcc/tree-scalar-evolution.c:2409
0x11ded9e instantiate_scev_r
        gcc/tree-scalar-evolution.c:2641
0x11dfde5 instantiate_scev(edge_def*, loop*, tree_node*)
        gcc/tree-scalar-evolution.c:2718
0x127743a instantiate_parameters
        gcc/tree-scalar-evolution.h:63
0x127743a idx_infer_loop_bounds
        gcc/tree-ssa-loop-niter.c:3612
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.

Reproducer:
extern unsigned short var_5;
extern int var_8, var_9;
extern short arr_7[];
void test() {
  for (; 0 < (char)var_5;)
    for (int a(var_9 ? var_5 : 0); a < 3002972621U + 1291994699;
         a += 19499 - 19497)
      for (long b(var_8); b; b += 4)
        arr_7[a * b] = 0;
}

GCC version:
11.0.0 (87af4f40453a9c84363bde5d9a58466de7fbee2e)

             reply	other threads:[~2020-06-12  5:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-12  5:45 vsevolod.livinskij at frtk dot ru [this message]
2020-06-12  7:28 ` [Bug tree-optimization/95649] [11 Regression] ICE during GIMPLE pass: cunroll since r11-1146-g1396fa5b91cfa0b3 marxin at gcc dot gnu.org
2020-06-12  8:03 ` rguenth at gcc dot gnu.org
2020-06-14 14:05 ` seurer at linux dot vnet.ibm.com
2020-06-15 17:20 ` aldyh at gcc dot gnu.org
2020-06-15 17:21 ` aldyh at gcc dot gnu.org
2020-06-15 17:21 ` aldyh at gcc dot gnu.org
2020-06-15 18:12 ` aldyh at gcc dot gnu.org
2020-06-15 19:11 ` law at redhat dot com
2020-06-16 11:56 ` aldyh at gcc dot gnu.org
2020-06-16 14:23 ` law at redhat dot com
2020-06-16 18:51 ` cvs-commit at gcc dot gnu.org
2020-06-16 18:59 ` aldyh 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-95649-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).