Commit 103b83ea by Ulrich Weigand Committed by Ulrich Weigand

expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode as valid modes to…

expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode as valid modes to expand address expressions.

	* expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
	as valid modes to expand address expressions.

From-SVN: r88464
parent bf50d091
2004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
* expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
as valid modes to expand address expressions.
2004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
* c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
......
......@@ -6201,7 +6201,7 @@ expand_expr_addr_expr (tree exp, rtx target, enum machine_mode tmode,
/* We can get called with some Weird Things if the user does silliness
like "(short) &a". In that case, convert_memory_address won't do
the right thing, so ignore the given target mode. */
if (!targetm.valid_pointer_mode (tmode))
if (tmode != Pmode && tmode != ptr_mode)
tmode = Pmode;
result = expand_expr_addr_expr_1 (TREE_OPERAND (exp, 0), target,
......
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