Commit 03d4f106 by Joseph Myers Committed by Joseph Myers

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
parent 1d200199
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> 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR target/25477 PR target/25477
......
...@@ -489,6 +489,7 @@ memory_address (enum machine_mode mode, rtx x) ...@@ -489,6 +489,7 @@ memory_address (enum machine_mode mode, rtx x)
done: done:
gcc_assert (memory_address_p (mode, x));
/* If we didn't change the address, we are done. Otherwise, mark /* 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. */ a reg as a pointer if we have REG or REG + CONST_INT. */
if (oldx == x) if (oldx == x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment