public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64
@ 2021-03-08 16:28 acoplan at gcc dot gnu.org
2021-03-08 19:19 ` [Bug rtl-optimization/99469] " acoplan at gcc dot gnu.org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-03-08 16:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99469
Bug ID: 99469
Summary: ICE: qsort checking failed with selective scheduling
on aarch64
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: acoplan at gcc dot gnu.org
Target Milestone: ---
The following fails:
$ cat test.c
typedef struct {
int a[3];
} s;
s ss[1][5][8];
int g();
void h(s);
int foo(char *, ...);
void f() {
int a, b, c, d = 0;
if (g())
d = 1;
for (; a; a++) {
if (d)
foo("a", "");
h(ss[a][b][c]);
if (d)
foo("a");
}
}
$ aarch64-linux-gnu-gcc -c test.c -O2 -fselective-scheduling
-fselective-scheduling2 -fsel-sched-pipelining -mtune=cortex-a53
test.c: In function ‘f’:
test.c:21:1: error: qsort comparator not anti-symmetric: -1, -1
21 | }
| ^
during RTL pass: sched2
test.c:21:1: internal compiler error: qsort checking failed
0x1c2b727 qsort_chk_error
/home/alecop01/toolchain/src/gcc/gcc/vec.c:214
0x1c2bc7d qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*,
void const*, void*), void*)
/home/alecop01/toolchain/src/gcc/gcc/vec.c:258
0x1c62d8e gcc_qsort(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
/home/alecop01/toolchain/src/gcc/gcc/sort.cc:270
0xda2728 vec<_expr*, va_heap, vl_embed>::qsort(int (*)(void const*, void
const*))
/home/alecop01/toolchain/src/gcc/gcc/vec.h:1148
0xda2728 vec<_expr*, va_heap, vl_ptr>::qsort(int (*)(void const*, void const*))
/home/alecop01/toolchain/src/gcc/gcc/vec.h:2041
0xda2728 fill_vec_av_set
/home/alecop01/toolchain/src/gcc/gcc/sel-sched.c:3717
0xda65d2 fill_ready_list
/home/alecop01/toolchain/src/gcc/gcc/sel-sched.c:4014
0xda65d2 find_best_expr
/home/alecop01/toolchain/src/gcc/gcc/sel-sched.c:4374
0xda65d2 fill_insns
/home/alecop01/toolchain/src/gcc/gcc/sel-sched.c:5535
0xda65d2 schedule_on_fences
/home/alecop01/toolchain/src/gcc/gcc/sel-sched.c:7353
0xda65d2 sel_sched_region_2
/home/alecop01/toolchain/src/gcc/gcc/sel-sched.c:7491
0xda9508 sel_sched_region_1
/home/alecop01/toolchain/src/gcc/gcc/sel-sched.c:7533
0xda9e2f sel_sched_region(int)
/home/alecop01/toolchain/src/gcc/gcc/sel-sched.c:7634
0xdab3cf run_selective_scheduling()
/home/alecop01/toolchain/src/gcc/gcc/sel-sched.c:7720
0xd85b1c rest_of_handle_sched2
/home/alecop01/toolchain/src/gcc/gcc/sched-rgn.c:3738
0xd85b1c execute
/home/alecop01/toolchain/src/gcc/gcc/sched-rgn.c:3882
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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/99469] ICE: qsort checking failed with selective scheduling on aarch64
2021-03-08 16:28 [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64 acoplan at gcc dot gnu.org
@ 2021-03-08 19:19 ` acoplan at gcc dot gnu.org
2021-03-09 13:03 ` amonakov at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-03-08 19:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99469
--- Comment #1 from Alex Coplan <acoplan at gcc dot gnu.org> ---
FWIW this is easy to reproduce with either csmith or yarpgen, so should be
straightforward to procure a new testcase if the above goes latent.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/99469] ICE: qsort checking failed with selective scheduling on aarch64
2021-03-08 16:28 [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64 acoplan at gcc dot gnu.org
2021-03-08 19:19 ` [Bug rtl-optimization/99469] " acoplan at gcc dot gnu.org
@ 2021-03-09 13:03 ` amonakov at gcc dot gnu.org
2021-03-31 14:14 ` acoplan at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: amonakov at gcc dot gnu.org @ 2021-03-09 13:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99469
Alexander Monakov <amonakov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |82407
--- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Related: PR 84566
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82407
[Bug 82407] [meta-bug] qsort_chk fallout tracking
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/99469] ICE: qsort checking failed with selective scheduling on aarch64
2021-03-08 16:28 [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64 acoplan at gcc dot gnu.org
2021-03-08 19:19 ` [Bug rtl-optimization/99469] " acoplan at gcc dot gnu.org
2021-03-09 13:03 ` amonakov at gcc dot gnu.org
@ 2021-03-31 14:14 ` acoplan at gcc dot gnu.org
2021-04-08 14:25 ` [Bug rtl-optimization/99469] [8/9/10/11 Regression] " rguenth at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-03-31 14:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99469
--- Comment #3 from Alex Coplan <acoplan at gcc dot gnu.org> ---
Started with r8-6635-g3f26f054872c375e7f9a80ede7a56036d9b57597.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/99469] [8/9/10/11 Regression] ICE: qsort checking failed with selective scheduling on aarch64
2021-03-08 16:28 [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64 acoplan at gcc dot gnu.org
` (2 preceding siblings ...)
2021-03-31 14:14 ` acoplan at gcc dot gnu.org
@ 2021-04-08 14:25 ` rguenth at gcc dot gnu.org
2021-04-09 8:29 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-08 14:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99469
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |8.5
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/99469] [8/9/10/11 Regression] ICE: qsort checking failed with selective scheduling on aarch64
2021-03-08 16:28 [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64 acoplan at gcc dot gnu.org
` (3 preceding siblings ...)
2021-04-08 14:25 ` [Bug rtl-optimization/99469] [8/9/10/11 Regression] " rguenth at gcc dot gnu.org
@ 2021-04-09 8:29 ` rguenth at gcc dot gnu.org
2021-05-14 9:54 ` [Bug rtl-optimization/99469] [9/10/11/12 " jakub at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-09 8:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99469
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/99469] [9/10/11/12 Regression] ICE: qsort checking failed with selective scheduling on aarch64
2021-03-08 16:28 [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64 acoplan at gcc dot gnu.org
` (4 preceding siblings ...)
2021-04-09 8:29 ` rguenth at gcc dot gnu.org
@ 2021-05-14 9:54 ` jakub at gcc dot gnu.org
2021-06-01 8:19 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14 9:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99469
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|8.5 |9.4
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/99469] [9/10/11/12 Regression] ICE: qsort checking failed with selective scheduling on aarch64
2021-03-08 16:28 [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64 acoplan at gcc dot gnu.org
` (5 preceding siblings ...)
2021-05-14 9:54 ` [Bug rtl-optimization/99469] [9/10/11/12 " jakub at gcc dot gnu.org
@ 2021-06-01 8:19 ` rguenth at gcc dot gnu.org
2022-05-27 9:44 ` [Bug rtl-optimization/99469] [10/11/12/13 " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01 8:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99469
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.4 |9.5
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/99469] [10/11/12/13 Regression] ICE: qsort checking failed with selective scheduling on aarch64
2021-03-08 16:28 [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64 acoplan at gcc dot gnu.org
` (6 preceding siblings ...)
2021-06-01 8:19 ` rguenth at gcc dot gnu.org
@ 2022-05-27 9:44 ` rguenth at gcc dot gnu.org
2022-06-28 10:43 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27 9:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99469
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.5 |10.4
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/99469] [10/11/12/13 Regression] ICE: qsort checking failed with selective scheduling on aarch64
2021-03-08 16:28 [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64 acoplan at gcc dot gnu.org
` (7 preceding siblings ...)
2022-05-27 9:44 ` [Bug rtl-optimization/99469] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:43 ` jakub at gcc dot gnu.org
2023-07-07 10:39 ` [Bug rtl-optimization/99469] [11/12/13/14 " rguenth at gcc dot gnu.org
2024-03-11 2:50 ` law at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99469
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/99469] [11/12/13/14 Regression] ICE: qsort checking failed with selective scheduling on aarch64
2021-03-08 16:28 [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64 acoplan at gcc dot gnu.org
` (8 preceding siblings ...)
2022-06-28 10:43 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:39 ` rguenth at gcc dot gnu.org
2024-03-11 2:50 ` law at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99469
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.5 |11.5
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug rtl-optimization/99469] [11/12/13/14 Regression] ICE: qsort checking failed with selective scheduling on aarch64
2021-03-08 16:28 [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64 acoplan at gcc dot gnu.org
` (9 preceding siblings ...)
2023-07-07 10:39 ` [Bug rtl-optimization/99469] [11/12/13/14 " rguenth at gcc dot gnu.org
@ 2024-03-11 2:50 ` law at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: law at gcc dot gnu.org @ 2024-03-11 2:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99469
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] 12+ messages in thread
end of thread, other threads:[~2024-03-11 2:50 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-08 16:28 [Bug rtl-optimization/99469] New: ICE: qsort checking failed with selective scheduling on aarch64 acoplan at gcc dot gnu.org
2021-03-08 19:19 ` [Bug rtl-optimization/99469] " acoplan at gcc dot gnu.org
2021-03-09 13:03 ` amonakov at gcc dot gnu.org
2021-03-31 14:14 ` acoplan at gcc dot gnu.org
2021-04-08 14:25 ` [Bug rtl-optimization/99469] [8/9/10/11 Regression] " rguenth at gcc dot gnu.org
2021-04-09 8:29 ` rguenth at gcc dot gnu.org
2021-05-14 9:54 ` [Bug rtl-optimization/99469] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01 8:19 ` rguenth at gcc dot gnu.org
2022-05-27 9:44 ` [Bug rtl-optimization/99469] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:43 ` jakub at gcc dot gnu.org
2023-07-07 10:39 ` [Bug rtl-optimization/99469] [11/12/13/14 " rguenth at gcc dot gnu.org
2024-03-11 2:50 ` 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).