public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108792] New: [10/11/12/13 Regression] ICE in reset_sched_cycles_in_current_ebb, at sel-sched.cc:7147
@ 2023-02-14 19:35 gscfq@t-online.de
  2023-02-15  8:38 ` [Bug rtl-optimization/108792] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2023-02-14 19:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108792
           Summary: [10/11/12/13 Regression] ICE in
                    reset_sched_cycles_in_current_ebb, at
                    sel-sched.cc:7147
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started with r10 between 20191110 and 20191117 (one week before pr97972),
at -O2+ and with special option -march=amdfam10 :

Testcase was derived from
llvm-project-llvmorg-14.0.6/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_complex_structure.cpp


$ cat z1.cc
class A {
public:
  A() {
    a = 1;
    b = 2;
  }
  void show() {
    __builtin_printf ("\n");
    __builtin_printf ("%d %d\n", a, b);
  }
  int a;
  int b;
};
class B {
public:
  B() {
    arr = new A[2];
    len = 2;
  }
  void show() {
    for (int i = 0; i < len; i++)
      arr[i].show();
  }
  A *arr;
  int len;
};
void foo (void) {
  B *x = new B[2];
  for (int i = 0; i < 2; i++)
    x[i].show();
  return;
}


$ gcc-13-20230212 -c z1.cc -O2 -fnon-call-exceptions -fprofile-generate
-fsel-sched-pipelining -fselective-scheduling2
$
$ gcc-13-20230212 -c z1.cc -O2 -fnon-call-exceptions -fprofile-generate
-fsel-sched-pipelining -fselective-scheduling2 -march=amdfam10
during RTL pass: sched2
z1.cc: In member function 'void B::show()':
z1.cc:23:3: internal compiler error: in reset_sched_cycles_in_current_ebb, at
sel-sched.cc:7147
   23 |   }
      |   ^
0x11f60c5 reset_sched_cycles_in_current_ebb
        ../../gcc/sel-sched.cc:7147
0x11f60c5 sel_region_target_finish
        ../../gcc/sel-sched.cc:7220
0x11f60c5 sel_region_finish
        ../../gcc/sel-sched.cc:7276
0x11f60c5 sel_sched_region(int)
        ../../gcc/sel-sched.cc:7645
0x11f62f9 run_selective_scheduling()
        ../../gcc/sel-sched.cc:7720
0x11d2475 rest_of_handle_sched2
        ../../gcc/sched-rgn.cc:3743
0x11d2475 execute
        ../../gcc/sched-rgn.cc:3890

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

* [Bug rtl-optimization/108792] [10/11/12/13 Regression] ICE in reset_sched_cycles_in_current_ebb, at sel-sched.cc:7147
  2023-02-14 19:35 [Bug c++/108792] New: [10/11/12/13 Regression] ICE in reset_sched_cycles_in_current_ebb, at sel-sched.cc:7147 gscfq@t-online.de
@ 2023-02-15  8:38 ` rguenth at gcc dot gnu.org
  2023-02-23 14:52 ` marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-02-15  8:38 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |85099
   Target Milestone|---                         |10.5


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85099
[Bug 85099] [meta-bug] selective scheduling issues

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

* [Bug rtl-optimization/108792] [10/11/12/13 Regression] ICE in reset_sched_cycles_in_current_ebb, at sel-sched.cc:7147
  2023-02-14 19:35 [Bug c++/108792] New: [10/11/12/13 Regression] ICE in reset_sched_cycles_in_current_ebb, at sel-sched.cc:7147 gscfq@t-online.de
  2023-02-15  8:38 ` [Bug rtl-optimization/108792] " rguenth at gcc dot gnu.org
@ 2023-02-23 14:52 ` marxin at gcc dot gnu.org
  2023-03-27 11:02 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-02-23 14:52 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-02-23

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r10-4653-g79f1d8521882de51 which is a param default change.

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

* [Bug rtl-optimization/108792] [10/11/12/13 Regression] ICE in reset_sched_cycles_in_current_ebb, at sel-sched.cc:7147
  2023-02-14 19:35 [Bug c++/108792] New: [10/11/12/13 Regression] ICE in reset_sched_cycles_in_current_ebb, at sel-sched.cc:7147 gscfq@t-online.de
  2023-02-15  8:38 ` [Bug rtl-optimization/108792] " rguenth at gcc dot gnu.org
  2023-02-23 14:52 ` marxin at gcc dot gnu.org
@ 2023-03-27 11:02 ` rguenth at gcc dot gnu.org
  2023-07-07 10:44 ` [Bug rtl-optimization/108792] [11/12/13/14 " rguenth at gcc dot gnu.org
  2024-03-07 14:51 ` law at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-03-27 11:02 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2

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

* [Bug rtl-optimization/108792] [11/12/13/14 Regression] ICE in reset_sched_cycles_in_current_ebb, at sel-sched.cc:7147
  2023-02-14 19:35 [Bug c++/108792] New: [10/11/12/13 Regression] ICE in reset_sched_cycles_in_current_ebb, at sel-sched.cc:7147 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2023-03-27 11:02 ` rguenth at gcc dot gnu.org
@ 2023-07-07 10:44 ` rguenth at gcc dot gnu.org
  2024-03-07 14:51 ` law at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:44 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

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

* [Bug rtl-optimization/108792] [11/12/13/14 Regression] ICE in reset_sched_cycles_in_current_ebb, at sel-sched.cc:7147
  2023-02-14 19:35 [Bug c++/108792] New: [10/11/12/13 Regression] ICE in reset_sched_cycles_in_current_ebb, at sel-sched.cc:7147 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2023-07-07 10:44 ` [Bug rtl-optimization/108792] [11/12/13/14 " rguenth at gcc dot gnu.org
@ 2024-03-07 14:51 ` law at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: law at gcc dot gnu.org @ 2024-03-07 14:51 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at gcc dot gnu.org
           Priority|P2                          |P4

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

end of thread, other threads:[~2024-03-07 14:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-14 19:35 [Bug c++/108792] New: [10/11/12/13 Regression] ICE in reset_sched_cycles_in_current_ebb, at sel-sched.cc:7147 gscfq@t-online.de
2023-02-15  8:38 ` [Bug rtl-optimization/108792] " rguenth at gcc dot gnu.org
2023-02-23 14:52 ` marxin at gcc dot gnu.org
2023-03-27 11:02 ` rguenth at gcc dot gnu.org
2023-07-07 10:44 ` [Bug rtl-optimization/108792] [11/12/13/14 " rguenth at gcc dot gnu.org
2024-03-07 14:51 ` law 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).