Commit fd91cfe3 by Yufeng Zhang Committed by Yufeng Zhang

function.c (assign_parm_find_data_types): Set passed_mode and nominal_mode to…

function.c (assign_parm_find_data_types): Set passed_mode and nominal_mode to the TYPE_MODE of nominal_type for the built...

gcc/
	* function.c (assign_parm_find_data_types): Set passed_mode and
	nominal_mode to the TYPE_MODE of nominal_type for the built
	pointer type in case of the struct-pass-by-reference.

From-SVN: r202014
parent 15300950
2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
* function.c (assign_parm_find_data_types): Set passed_mode and
nominal_mode to the TYPE_MODE of nominal_type for the built
pointer type in case of the struct-pass-by-reference.
2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
* config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
......
......@@ -2386,7 +2386,7 @@ assign_parm_find_data_types (struct assign_parm_data_all *all, tree parm,
{
passed_type = nominal_type = build_pointer_type (passed_type);
data->passed_pointer = true;
passed_mode = nominal_mode = Pmode;
passed_mode = nominal_mode = TYPE_MODE (nominal_type);
}
/* Find mode as it is passed by the ABI. */
......
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