middle-end/8403: [sh-elf] ICE in gcc/testsuite/gcc.c-torture/ execute/2001
Naveen Sharma, Noida
naveens@noida.hcltech.com
Fri Feb 14 12:17:00 GMT 2003
Hi,
Joern Rennecke suggested the following fix for this problem
But it hasn't made its way into the mainline yet.
I have been using this for quite some time now
(running make check, stress 1.17 and lot of other c code).
So it should be tested for sh-elf port throughly enough.
Since Joern wrote the fix, I would request him to generate
the changelog entry.
Thanks !!
Best Regards,
Naveen Sharma.
Index: config/sh/sh.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/sh.c,v
retrieving revision 1.196
diff -c -3 -p -r1.196 sh.c
*** config/sh/sh.c 31 Jan 2003 23:34:16 -0000 1.196
--- config/sh/sh.c 14 Feb 2003 11:24:34 -0000
*************** calc_live_regs (count_ptr, live_regs_mas
*** 4571,4577 ****
{
rtx pr_initial = has_hard_reg_initial_val (Pmode, PR_REG);
pr_live = (pr_initial
! ? REGNO (pr_initial) != (PR_REG) : regs_ever_live[PR_REG]);
}
/* Force PR to be live if the prologue has to call the SHmedia
argument decoder or register saver. */
--- 4571,4579 ----
{
rtx pr_initial = has_hard_reg_initial_val (Pmode, PR_REG);
pr_live = (pr_initial
! ? (GET_CODE (pr_initial) != REG
! || REGNO (pr_initial) != (PR_REG))
! : regs_ever_live[PR_REG]);
}
/* Force PR to be live if the prologue has to call the SHmedia
argument decoder or register saver. */
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 8403.txt
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20030214/65afefd7/attachment.txt>
More information about the Gcc-bugs
mailing list