OSDN Git Service

* cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jun 2006 19:22:07 +0000 (19:22 +0000)
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jun 2006 19:22:07 +0000 (19:22 +0000)
        (cse_insn): Likewise for the stack_pointer_rtx.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114492 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cse.c

index 33bbfbc..66a4130 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-08  Steven Bosscher  <steven@gcc.gnu.org>
+
+       * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
+       (cse_insn): Likewise for the stack_pointer_rtx.
+
 2006-06-08  Roger Sayle  <roger@eyesopen.com>
 
        * tree-ssa-dom.c (record_conditions): Only record "unordered"
index 29e20cc..65a4a0a 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -1724,7 +1724,7 @@ flush_hash_table (void)
        /* Note that invalidate can remove elements
           after P in the current hash chain.  */
        if (REG_P (p->exp))
-         invalidate (p->exp, p->mode);
+         invalidate (p->exp, VOIDmode);
        else
          remove_from_table (p, i);
       }
@@ -5723,7 +5723,7 @@ cse_insn (rtx insn, rtx libcall_insn)
          rtx addr = XEXP (dest, 0);
          if (GET_RTX_CLASS (GET_CODE (addr)) == RTX_AUTOINC
              && XEXP (addr, 0) == stack_pointer_rtx)
-           invalidate (stack_pointer_rtx, Pmode);
+           invalidate (stack_pointer_rtx, VOIDmode);
 #endif
          dest = fold_rtx (dest, insn);
        }