aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2006-06-08 19:22:07 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2006-06-08 19:22:07 +0000
commit524e3576e6eb211269030ce38e61a23274b3b63f (patch)
treec60bdf28cbbe993ac0f37c533260410fddfc9f9a /gcc/cse.c
parentb60f92a353b5cc9d62bf09985579f1555f23251f (diff)
downloadgcc-524e3576e6eb211269030ce38e61a23274b3b63f.zip
gcc-524e3576e6eb211269030ce38e61a23274b3b63f.tar.gz
gcc-524e3576e6eb211269030ce38e61a23274b3b63f.tar.bz2
cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
* cse.c (flush_hash_table): Use VOIDmode to invalidate a REG. (cse_insn): Likewise for the stack_pointer_rtx. From-SVN: r114492
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 29e20cc..65a4a0a 100644
--- 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);
}