public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/109187] New: [13 Regression] ICE: qsort checking failed: qsort comparator non-negative on sorted output: 1736258160 at -O2
@ 2023-03-19  5:45 zsojka at seznam dot cz
  2023-03-19 23:12 ` [Bug rtl-optimization/109187] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: zsojka at seznam dot cz @ 2023-03-19  5:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109187
           Summary: [13 Regression] ICE: qsort checking failed: qsort
                    comparator non-negative on sorted output: 1736258160
                    at -O2
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: aarch64-unknown-linux-gnu

Created attachment 54703
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54703&action=edit
reduced testcase

Compiler output:
$ aarch64-unknown-linux-gnu-gcc testcase.c -O2
testcase.c: In function 'foo':
testcase.c:15:1: error: qsort comparator non-negative on sorted output:
1736258160
   15 | }
      | ^
during RTL pass: sched1
testcase.c:15:1: internal compiler error: qsort checking failed
0xad2af3 qsort_chk_error
        /repo/gcc-trunk/gcc/vec.cc:204
0xad2c3c qsort_chk(void*, unsigned long, unsigned long, int (*)(void const*,
void const*, void*), void*)
        /repo/gcc-trunk/gcc/vec.cc:246
0x20ccab5 gcc_qsort(void*, unsigned long, unsigned long, int (*)(void const*,
void const*))
        /repo/gcc-trunk/gcc/sort.cc:272
0x1ec3882 ready_sort_real
        /repo/gcc-trunk/gcc/haifa-sched.cc:3095
0x1ecc05c ready_sort
        /repo/gcc-trunk/gcc/haifa-sched.cc:3111
0x1ecc05c schedule_block(basic_block_def**, void*)
        /repo/gcc-trunk/gcc/haifa-sched.cc:6718
0x1125b1a schedule_region
        /repo/gcc-trunk/gcc/sched-rgn.cc:3200
0x1125b1a schedule_insns()
        /repo/gcc-trunk/gcc/sched-rgn.cc:3527
0x1125dec schedule_insns()
        /repo/gcc-trunk/gcc/sched-rgn.cc:3513
0x1125dec rest_of_handle_sched
        /repo/gcc-trunk/gcc/sched-rgn.cc:3731
0x1125dec execute
        /repo/gcc-trunk/gcc/sched-rgn.cc:3841
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

end of thread, other threads:[~2023-03-28 13:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-19  5:45 [Bug rtl-optimization/109187] New: [13 Regression] ICE: qsort checking failed: qsort comparator non-negative on sorted output: 1736258160 at -O2 zsojka at seznam dot cz
2023-03-19 23:12 ` [Bug rtl-optimization/109187] " pinskia at gcc dot gnu.org
2023-03-20 13:50 ` [Bug rtl-optimization/109187] [13 Regression] ICE: qsort checking failed: qsort comparator non-negative on sorted output: 1736258160 at -O2 since r13-5154-g733a1b777f16cd marxin at gcc dot gnu.org
2023-03-20 16:15 ` amonakov at gcc dot gnu.org
2023-03-22 13:15 ` amonakov at gcc dot gnu.org
2023-03-27  7:45 ` rguenth at gcc dot gnu.org
2023-03-28 13:44 ` cvs-commit at gcc dot gnu.org
2023-03-28 13:46 ` amonakov 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).