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
This commit is contained in:
Yufeng Zhang 2013-08-27 02:45:17 +00:00 committed by Yufeng Zhang
parent 1530095001
commit fd91cfe3e0
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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".

View File

@ -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. */