This is the mail archive of the gcc-patches@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]

Small PATCH to try_swap_copy_prop


A previous patch changed this test from 'insn' to 'set' (while tidying up
other things).  This is clearly wrong, and caused a crash in the g++
testsuite when run with optimization.  Unfortunately, I don't currently
remember which test.

Applied to trunk and branch.  Tested i686-pc-linux-gnu.

2001-04-25  Jason Merrill  <jason_merrill@redhat.com>

	* loop.c (try_swap_copy_prop): Go back to checking insn.

*** loop.c.~1~	Wed Apr 25 14:31:01 2001
--- loop.c	Wed Apr 25 14:29:55 2001
*************** try_swap_copy_prop (loop, replacement, r
*** 9318,9324 ****
  	break;
      }
  
!   if (set)
      {
        rtx prev_insn;
        rtx prev_set;
--- 9318,9324 ----
  	break;
      }
  
!   if (insn != NULL_RTX)
      {
        rtx prev_insn;
        rtx prev_set;

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