public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/112328] New: ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418
@ 2023-11-01  7:27 dcb314 at hotmail dot com
  2023-11-01  7:36 ` [Bug c/112328] " dcb314 at hotmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2023-11-01  7:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112328
           Summary: ice in rdg_vertex_for_stmt, at
                    tree-loop-distribution.cc:418
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 56481
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56481&action=edit
C source code

For the attached C code, compiled with recent gcc, does this:

foundBugs $ ../results/bin/gcc -c -w bug973.c
foundBugs $ ../results/bin/gcc -c -w -g bug973.c
foundBugs $ ../results/bin/gcc -c -w -g -O1 bug973.c
foundBugs $ ../results/bin/gcc -c -w -g -O2 bug973.c
during GIMPLE pass: ldist
rcolor.r: In function ‘palsetup’:
rcolor.r:570:18: internal compiler error: in rdg_vertex_for_stmt, at
tree-loop-distribution.cc:418
0xf6291d rdg_vertex_for_stmt(graph*, gimple*)
        ../../trunk.year/gcc/tree-loop-distribution.cc:418
0xf6291d create_rdg_edges_for_scalar(graph*, tree_node*, int)
        ../../trunk.year/gcc/tree-loop-distribution.cc:434

The bug first seems to occur sometime between g:8c40b72036c967fb
and g:9119b008b4195e06.

I will have a go at a reduction.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c/112328] ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418
  2023-11-01  7:27 [Bug c/112328] New: ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418 dcb314 at hotmail dot com
@ 2023-11-01  7:36 ` dcb314 at hotmail dot com
  2023-11-01  8:00 ` dcb314 at hotmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2023-11-01  7:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Reduced code seems to be:

int allchars, palsetup_p, palsetup_b, palsetup_e;
int *palsetup_palette;
void palsetup() {
  int g;
  char *s;
  switch (palsetup_p)
  case 6:
    s = allchars;
  g = 0;
  for (; g < palsetup_p; g++) {
    palsetup_b = 0;
    for (; palsetup_b < palsetup_p; palsetup_b++)
      palsetup_e = palsetup_palette[*s++];
  }
}

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c/112328] ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418
  2023-11-01  7:27 [Bug c/112328] New: ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418 dcb314 at hotmail dot com
  2023-11-01  7:36 ` [Bug c/112328] " dcb314 at hotmail dot com
@ 2023-11-01  8:00 ` dcb314 at hotmail dot com
  2023-11-01 16:00 ` [Bug tree-optimization/112328] [14 Regression] " pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2023-11-01  8:00 UTC (permalink / raw)
  To: gcc-bugs

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

David Binderman <dcb314 at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
After a bisect, range seems to be g:1cf5dc05c678232b
to g:9119b008b4195e06.

Richard's commit e3da1d7bb288c8c864f0284bc4bc5877b466a2f7 looks a strong
candidate.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/112328] [14 Regression] ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418
  2023-11-01  7:27 [Bug c/112328] New: ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418 dcb314 at hotmail dot com
  2023-11-01  7:36 ` [Bug c/112328] " dcb314 at hotmail dot com
  2023-11-01  8:00 ` dcb314 at hotmail dot com
@ 2023-11-01 16:00 ` pinskia at gcc dot gnu.org
  2023-11-01 16:02 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-01 16:00 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0
          Component|c                           |tree-optimization
           Keywords|                            |ice-on-valid-code
            Summary|ice in rdg_vertex_for_stmt, |[14 Regression] ice in
                   |at                          |rdg_vertex_for_stmt, at
                   |tree-loop-distribution.cc:4 |tree-loop-distribution.cc:4
                   |18                          |18

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/112328] [14 Regression] ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418
  2023-11-01  7:27 [Bug c/112328] New: ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418 dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2023-11-01 16:00 ` [Bug tree-optimization/112328] [14 Regression] " pinskia at gcc dot gnu.org
@ 2023-11-01 16:02 ` pinskia at gcc dot gnu.org
  2023-11-02  8:42 ` pinskia at gcc dot gnu.org
  2023-11-02  8:43 ` pinskia at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-01 16:02 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-11-01
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/112328] [14 Regression] ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418
  2023-11-01  7:27 [Bug c/112328] New: ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418 dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2023-11-01 16:02 ` pinskia at gcc dot gnu.org
@ 2023-11-02  8:42 ` pinskia at gcc dot gnu.org
  2023-11-02  8:43 ` pinskia at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-02  8:42 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Same underlying issue as PR 112320.

*** This bug has been marked as a duplicate of bug 112320 ***

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/112328] [14 Regression] ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418
  2023-11-01  7:27 [Bug c/112328] New: ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418 dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2023-11-02  8:42 ` pinskia at gcc dot gnu.org
@ 2023-11-02  8:43 ` pinskia at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-02  8:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Before the patch:

  # DEBUG s => s_42

After:

  # DEBUG s => D#1

And no reference to D#1 ...

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-11-02  8:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-01  7:27 [Bug c/112328] New: ice in rdg_vertex_for_stmt, at tree-loop-distribution.cc:418 dcb314 at hotmail dot com
2023-11-01  7:36 ` [Bug c/112328] " dcb314 at hotmail dot com
2023-11-01  8:00 ` dcb314 at hotmail dot com
2023-11-01 16:00 ` [Bug tree-optimization/112328] [14 Regression] " pinskia at gcc dot gnu.org
2023-11-01 16:02 ` pinskia at gcc dot gnu.org
2023-11-02  8:42 ` pinskia at gcc dot gnu.org
2023-11-02  8:43 ` pinskia 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).