summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2008-02-23 21:11:25 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2008-02-23 21:11:25 +0000
commit03d4f10689837f8b7998f614921295d308e41a52 (patch)
tree17df72249ed148400480cfea079a11fd0ec3d97c /gcc
parent1d2001995b29ce10a1b61a1b0d0989704c4f7ce7 (diff)
downloadgcc-03d4f10689837f8b7998f614921295d308e41a52.tar.gz
explow.c (memory_address): Assert that the generated address is valid.
* explow.c (memory_address): Assert that the generated address is valid. From-SVN: r132578
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/explow.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e4af96d6371..3a2296deed3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-23 Joseph Myers <joseph@codesourcery.com>
+
+ * explow.c (memory_address): Assert that the generated address is
+ valid.
+
2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR target/25477
diff --git a/gcc/explow.c b/gcc/explow.c
index a5ed65b2e56..612fb1bb5db 100644
--- a/gcc/explow.c
+++ b/gcc/explow.c
@@ -489,6 +489,7 @@ memory_address (enum machine_mode mode, rtx x)
done:
+ gcc_assert (memory_address_p (mode, x));
/* If we didn't change the address, we are done. Otherwise, mark
a reg as a pointer if we have REG or REG + CONST_INT. */
if (oldx == x)