From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1608 invoked by alias); 7 Feb 2020 21:46:33 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 1596 invoked by uid 89); 7 Feb 2020 21:46:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: gate.crashing.org Received: from gate.crashing.org (HELO gate.crashing.org) (63.228.1.57) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Feb 2020 21:46:31 +0000 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 017LkSSd011089; Fri, 7 Feb 2020 15:46:29 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 017LkSuc011088; Fri, 7 Feb 2020 15:46:28 -0600 Date: Fri, 07 Feb 2020 21:46:00 -0000 From: Segher Boessenkool To: Vladimir Makarov Cc: gcc-patches Subject: Re: Patch to fix PR93561 Message-ID: <20200207214628.GT22482@gate.crashing.org> References: <782fd9b2-f2f1-e4b4-9161-909a18d84176@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <782fd9b2-f2f1-e4b4-9161-909a18d84176@redhat.com> User-Agent: Mutt/1.4.2.3i X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00463.txt.bz2 Hi! On Thu, Feb 06, 2020 at 05:16:14PM -0500, Vladimir Makarov wrote: > --- a/gcc/lra-assigns.c > +++ b/gcc/lra-assigns.c > @@ -964,6 +964,8 @@ spill_for (int regno, bitmap spilled_pseudo_bitmap, bool first_p) > bitmap_clear (&spill_pseudos_bitmap); > for (j = hard_regno_nregs (hard_regno, mode) - 1; j >= 0; j--) > { > + if (hard_regno + j >= FIRST_PSEUDO_REGISTER) > + break; if (!HARD_REGISTER_NUM_P (hard_regno + j)) ? Segher