This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: other/8403: ICE in gcc/testsuite/gcc.c-torture/execute/2001012 2-1.c for sh-elf target
- From: "Naveen Sharma, Noida" <naveens at noida dot hcltech dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 19 Dec 2002 21:47:23 +0530
- Subject: RE: other/8403: ICE in gcc/testsuite/gcc.c-torture/execute/2001012 2-1.c for sh-elf target
> 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) :
Sorry, I have missed the braces here.
It should look like
Index: gcc/config/sh/sh.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/sh/sh.c,v
retrieving revision 1.189
diff -c -2 -p -r1.189 sh.c
*** gcc/config/sh/sh.c 16 Dec 2002 18:21:54 -0000 1.189
--- gcc/config/sh/sh.c 19 Dec 2002 16:19:52 -0000
*************** calc_live_regs (count_ptr, live_regs_mas
*** 4421,4425 ****
{
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]);
}
--- 4421,4425 ----
{
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]);
}
Best Regards,
Naveen Sharma.