aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2015-03-28 03:09:17 (GMT)
committerAndrew Hsieh <andrewhsieh@google.com>2015-03-28 03:09:17 (GMT)
commit0dd93631a0aa1b5c2f807270305225bc2786393b (patch)
treeeb360722b41e44cbc47db8d89bc8dab8fa87c81f /gcc-4.9
parent7c97a89b191212146e0a723f7bf7507de26fd65e (diff)
downloadtoolchain_gcc-0dd93631a0aa1b5c2f807270305225bc2786393b.zip
toolchain_gcc-0dd93631a0aa1b5c2f807270305225bc2786393b.tar.gz
toolchain_gcc-0dd93631a0aa1b5c2f807270305225bc2786393b.tar.bz2
backport fix for ICE: in add_stores, at var-tracking.c:6000
2014-06-30 Joseph Myers <joseph@codesourcery.com> * var-tracking.c (add_stores): Return instead of asserting if old and new values for conditional store are the same. Change-Id: Ibb5775a3ad90e57bd6882a86a6b4c7a5262c09d0
Diffstat (limited to 'gcc-4.9')
-rw-r--r--gcc-4.9/gcc/var-tracking.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc-4.9/gcc/var-tracking.c b/gcc-4.9/gcc/var-tracking.c
index 65d8285..5553441 100644
--- a/gcc-4.9/gcc/var-tracking.c
+++ b/gcc-4.9/gcc/var-tracking.c
@@ -5997,7 +5997,8 @@ add_stores (rtx loc, const_rtx expr, void *cuip)
{
cselib_val *oval = cselib_lookup (oloc, GET_MODE (oloc), 0, VOIDmode);
- gcc_assert (oval != v);
+ if (oval == v)
+ return;
gcc_assert (REG_P (oloc) || MEM_P (oloc));
if (oval && !cselib_preserved_value_p (oval))