Commit 85776d60 by Daniel Jacobowitz Committed by Daniel Jacobowitz

function.c (assign_parm_remove_parallels): Check mode of entry_parm.

	* function.c (assign_parm_remove_parallels): Check mode of
	entry_parm.
	(assign_parm_setup_block_p): Also check mode of entry_parm.

From-SVN: r137575
parent bf87f41c
2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
* function.c (assign_parm_remove_parallels): Check mode of
entry_parm.
(assign_parm_setup_block_p): Also check mode of entry_parm.
2008-07-07 Richard Guenther <rguenther@suse.de> 2008-07-07 Richard Guenther <rguenther@suse.de>
* tree-ssa-structalias.h (set_used_smts): Remove. * tree-ssa-structalias.h (set_used_smts): Remove.
......
...@@ -2364,8 +2364,7 @@ assign_parm_remove_parallels (struct assign_parm_data_one *data) ...@@ -2364,8 +2364,7 @@ assign_parm_remove_parallels (struct assign_parm_data_one *data)
This can be done with register operations rather than on the This can be done with register operations rather than on the
stack, even if we will store the reconstituted parameter on the stack, even if we will store the reconstituted parameter on the
stack later. */ stack later. */
if (GET_CODE (entry_parm) == PARALLEL if (GET_CODE (entry_parm) == PARALLEL && GET_MODE (entry_parm) != BLKmode)
&& data->passed_mode != BLKmode)
{ {
rtx parmreg = gen_reg_rtx (GET_MODE (entry_parm)); rtx parmreg = gen_reg_rtx (GET_MODE (entry_parm));
emit_group_store (parmreg, entry_parm, NULL_TREE, emit_group_store (parmreg, entry_parm, NULL_TREE,
...@@ -2421,6 +2420,8 @@ assign_parm_setup_block_p (struct assign_parm_data_one *data) ...@@ -2421,6 +2420,8 @@ assign_parm_setup_block_p (struct assign_parm_data_one *data)
{ {
if (data->nominal_mode == BLKmode) if (data->nominal_mode == BLKmode)
return true; return true;
if (GET_MODE (data->entry_parm) == BLKmode)
return true;
#ifdef BLOCK_REG_PADDING #ifdef BLOCK_REG_PADDING
/* Only assign_parm_setup_block knows how to deal with register arguments /* Only assign_parm_setup_block knows how to deal with register arguments
......
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