From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25879 invoked by alias); 14 Oct 2008 19:43:58 -0000 Received: (qmail 25538 invoked by uid 48); 14 Oct 2008 19:42:37 -0000 Date: Tue, 14 Oct 2008 19:43:00 -0000 Message-ID: <20081014194237.25537.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/37633] [4.4 Regression] wrong register use on sh64 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "vmakarov at redhat dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg00933.txt.bz2 ------- Comment #3 from vmakarov at redhat dot com 2008-10-14 19:42 ------- I've checked the old RA. It does not assigned partially clobbered hard register because it is done only when non partially clobbered hard regs were tried first. Sh has a lot of such registers therefore the chance to generate wrong code is small. I can simulate the same behaviour for IRA by increasing costs for partially clobbered hard registers. Currently rs6000 and sh define HARD_REGNO_CALL_PART_CLOBBERED. So even the problem is solved for sh in different way, the patch increasing cost would be useful for rs6000. Still, as I wrote, the complete solution (the mentioned cost increase will be still necessary in any case) would be save and restore partially clobbered hard-registers in caller-saves.c. The patch increasing the costs will be sent later today. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37633