public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/109187] [13 Regression] ICE: qsort checking failed: qsort comparator non-negative on sorted output: 1736258160 at -O2 since r13-5154-g733a1b777f16cd
Date: Tue, 28 Mar 2023 13:44:40 +0000	[thread overview]
Message-ID: <bug-109187-4-tD2oPjv3qL@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-109187-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alexander Monakov <amonakov@gcc.gnu.org>:

https://gcc.gnu.org/g:fb046e69f0ed2d637ea715ae71ad50131f30cb2d

commit r13-6907-gfb046e69f0ed2d637ea715ae71ad50131f30cb2d
Author: Alexander Monakov <amonakov@ispras.ru>
Date:   Tue Mar 28 16:00:37 2023 +0300

    haifa-sched: fix autopref_rank_for_schedule comparator [PR109187]

    Do not attempt to use a plain subtraction for generating a three-way
    comparison result in autopref_rank_for_schedule qsort comparator, as
    offsets are not restricted and subtraction may overflow.  Open-code
    a safe three-way comparison instead.

    gcc/ChangeLog:

            PR rtl-optimization/109187
            * haifa-sched.cc (autopref_rank_for_schedule): Avoid use of
overflowing
            subtraction in three-way comparison.

    gcc/testsuite/ChangeLog:

            PR rtl-optimization/109187
            * gcc.dg/pr109187.c: New test.

  parent reply	other threads:[~2023-03-28 13:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2023-03-28 13:46 ` amonakov 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-109187-4-tD2oPjv3qL@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).