From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27802 invoked by alias); 29 May 2011 18:12:09 -0000 Received: (qmail 27794 invoked by uid 22791); 29 May 2011 18:12:08 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 29 May 2011 18:11:54 +0000 Received: by wwf26 with SMTP id 26so3007166wwf.8 for ; Sun, 29 May 2011 11:11:53 -0700 (PDT) Received: by 10.227.11.146 with SMTP id t18mr4105054wbt.104.1306692713482; Sun, 29 May 2011 11:11:53 -0700 (PDT) Received: from localhost (rsandifo.gotadsl.co.uk [82.133.89.107]) by mx.google.com with ESMTPS id o38sm2539409wba.20.2011.05.29.11.11.51 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 May 2011 11:11:52 -0700 (PDT) From: Richard Sandiford To: Mikael Pettersson Mail-Followup-To: Mikael Pettersson ,gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com Cc: gcc-patches@gcc.gnu.org Subject: Re: [committed] Fix handling of global registers in MIPS prologues References: <877hashjjb.fsf@firetop.home> <19883.19216.378904.322184@pilspetsen.it.uu.se> Date: Sun, 29 May 2011 20:41:00 -0000 In-Reply-To: <19883.19216.378904.322184@pilspetsen.it.uu.se> (Mikael Pettersson's message of "Sun, 17 Apr 2011 22:18:24 +0200") Message-ID: <87r57hjs0p.fsf@firetop.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 X-SW-Source: 2011-05/txt/msg02282.txt.bz2 Mikael Pettersson writes: > Richard Sandiford writes: > > PR 45074 showed up a rather embarrassing oversight in the MIPS backend: > > global registers were still being treated as call-saved. > > > > Fixed with the attached patch. Tested on mips64-linux-gnu and applied. > > > > Richard > > > > > > gcc/ > > * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global > > registers. > > This bug is also PR target/43700, a regression since gcc-4.4. > Do you want to backport the fix, or perhaps just mark PR43700 > as fixed in 4.7.0? I've now backported it to 4.4, 4.5 and 4.6. Sorry for the delay. Richard