This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: middle-end/8403: [sh-elf] ICE in gcc/testsuite/gcc.c-torture/execute/2001


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.  */

Attachment: 8403.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]