Commit 7254cb57 by Michael Matz Committed by Steve Ellcey

expr.c (expand_expr_real_2): Use GET_MODE instead of TYPE_MODE.

2011-05-18  Michael Matz  <matz@suse.de>
	    Steve Ellcey  <sje@cup.hp.com>

	* expr.c (expand_expr_real_2): Use GET_MODE instead of TYPE_MODE.

Co-Authored-By: Steve Ellcey <sje@cup.hp.com>

From-SVN: r172673
parent 474e8e70
2011-05-18 Michael Matz <matz@suse.de>
Steve Ellcey <sje@cup.hp.com>
* expr.c (expand_expr_real_2): Use GET_MODE instead of TYPE_MODE.
2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
* doc/passes.texi: Fill crossref nodes.
......
......@@ -7360,7 +7360,10 @@ expand_expr_real_2 (sepops ops, rtx target, enum machine_mode tmode,
else if (CONSTANT_P (op0))
{
tree inner_type = TREE_TYPE (treeop0);
enum machine_mode inner_mode = TYPE_MODE (inner_type);
enum machine_mode inner_mode = GET_MODE (op0);
if (inner_mode == VOIDmode)
inner_mode = TYPE_MODE (inner_type);
if (modifier == EXPAND_INITIALIZER)
op0 = simplify_gen_subreg (mode, op0, inner_mode,
......
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